.dm-phone-inbox,.dm-phone-conversation{width:min(100%,460px);box-sizing:border-box;aspect-ratio:9/16;min-height:0;display:flex;flex-direction:column}
.dm-phone-inbox .dm-status-bar,.dm-phone-conversation .dm-status-bar,.dm-phone-inbox .dm-inbox-title,.dm-favorites,.dm-inbox-bottom,.dm-phone .dm-home-indicator{flex-shrink:0}
.dm-phone-inbox .dm-inbox{flex:1;display:flex;flex-direction:column;padding:0 18px 10px;min-height:0}
.dm-phone-inbox .dm-direct,.dm-phone-inbox .dm-direct-label,.dm-phone-conversation .dm-inbox,.dm-phone-conversation .dm-direct-label{display:none}
.dm-phone-inbox .dm-inbox-title{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:2px 4px 8px}
.dm-phone-inbox .dm-inbox-title>button{order:2;font-size:14px;color:#0092ff;padding:6px 0;min-height:30px}
.dm-phone-inbox .dm-inbox-title h2{font-size:28px;letter-spacing:-.5px}
.dm-favorites{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:13px 14px 19px}
.dm-favorite{position:relative;min-width:0;text-align:center}
.dm-favorite>a{display:flex;align-items:center;flex-direction:column;gap:8px;color:#f5f5f7}
.dm-favorite .dm-avatar{width:72px;height:72px;font-size:27px;box-shadow:0 3px 12px #0004}
.dm-favorite-unread{position:absolute;top:-2px;left:calc(50% + 19px);height:22px;min-width:22px;display:grid;place-items:center;padding:0 5px;border:2px solid #000;border-radius:20px;background:#0092ff;color:#fff;font-size:11px;font-style:normal;line-height:1}
.dm-favorite>a>span:last-child{font-size:12px;font-weight:500;line-height:1.3;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-unpin{position:absolute;top:-3px;left:calc(50% - 42px);width:24px;height:24px;border-radius:50%;background:#67676b;border:2px solid #000;padding:0;font-size:19px;line-height:18px;color:#fff}
.dm-favorite-empty{display:flex;flex-direction:column;align-items:center;gap:8px;background:transparent;border:0;padding:0;color:#73737a}
.dm-favorite-empty>span{display:grid;place-items:center;width:72px;height:72px;border:1px dashed #44444a;border-radius:50%;font-size:28px;font-weight:300;background:#131315;color:#0092ff}
.dm-favorite-empty>small{font-size:12px}
.dm-phone-inbox [data-dm-inbox]{flex:1;min-height:0;display:flex;flex-direction:column}
.dm-phone-inbox .dm-thread-list{flex:1;min-height:0;max-height:none}
.dm-phone-inbox .dm-pages{flex-shrink:0}
.dm-phone-inbox .dm-thread{padding-top:15px;padding-bottom:15px;border-radius:12px}
.dm-phone-inbox .dm-thread-heading strong{font-size:16px;line-height:1.5}
.dm-phone-inbox .dm-preview{font-size:14px}
.dm-inbox-bottom{display:flex;align-items:center;gap:16px;padding:16px 22px 2px;margin-top:auto;border-top:1px solid #202023;background:#0e0e10}
.dm-inbox-search{display:flex;align-items:center;gap:8px;background:#262629;border-radius:22px;flex:1;min-width:0;padding:0 12px;margin:0}
.dm-inbox-search>svg{width:19px;height:19px;flex:none;color:#8e8e93}
.dm-inbox-search input{background:transparent;border:0;padding:11px 0;margin:0;min-width:0;font-size:16px;box-shadow:none}
.dm-inbox-search input::placeholder{color:#8e8e93}
.dm-inbox-bottom>button{width:34px;height:34px;border:0;padding:4px;background:transparent;color:#0092ff;border-radius:8px;flex:none}
.dm-inbox-bottom>button svg{width:27px;height:27px}
.dm-phone-inbox .dm-home-indicator{margin-top:16px}
.dm-phone-inbox:has(.dm-inbox-bottom) .dm-home-indicator:before{content:"";position:absolute;bottom:0;left:0;right:0;height:30px;background:#0e0e10;z-index:-1}
.dm-phone-inbox .dm-contacts{position:absolute;inset:62px 12px 54px;z-index:5;background:#18181bf5;backdrop-filter:blur(20px);margin:0;padding:18px;display:flex;flex-direction:column;box-shadow:0 5px 24px #0007;animation:dm-contacts-up .3s ease-out}
.dm-contacts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 18px}
.dm-contacts-heading h3{font-size:20px;font-weight:650;letter-spacing:-.3px;margin:0}
.dm-contacts-heading button{background:transparent;border:0;color:#0092ff;padding:3px 0;font-size:15px}
.dm-phone-inbox .dm-search-results{max-height:none;flex:1;margin-top:3px}
.dm-contacts-help{font-size:11px;color:#929298;line-height:1.4;margin:10px 0 3px}
.dm-contact-row{display:flex;align-items:center;border-bottom:1px solid #303033;gap:10px}
.dm-contact-row>a{flex:1;min-width:0;border:0}
.dm-pin-button{background:transparent;border:0;width:32px;height:32px;padding:6px;color:#777780;border-radius:50%;flex:none}
.dm-pin-button svg{width:20px;height:20px}
.dm-pin-button.pinned{color:#0092ff}
.dm-pin-button:hover{background:#27272b;color:#0092ff}
.dm-contact>.dm-pin-button.header{position:absolute;right:18px;top:23px;width:36px;height:36px;padding:8px}
.dm-phone-conversation .dm-direct{flex:1;min-height:0;overflow-y:auto}
.dm-phone-conversation .dm-direct>:not(.dm-scroll){flex-shrink:0}
.dm-phone-conversation .dm-scroll{flex:1;height:auto;min-height:0}
.dm-phone-conversation .dm-contact{padding-top:8px}
@keyframes dm-contacts-up{from{opacity:.3;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.dm-favorites{gap:8px;padding-left:8px;padding-right:8px}.dm-favorite .dm-avatar,.dm-favorite-empty>span{width:64px;height:64px}.dm-unpin{left:calc(50% - 38px)}.dm-phone-inbox .dm-thread-heading strong{font-size:15px}.dm-inbox-bottom{padding-left:18px;padding-right:18px}.dm-phone-inbox .dm-contacts{inset:58px 8px 46px;padding:15px}}
@media(prefers-reduced-motion:reduce){.dm-phone-inbox .dm-contacts{animation:none}}

/* Keep contact identity centered, regardless of the available action buttons. */
.dm-phone .dm-contact{min-height:78px;box-sizing:border-box;padding:7px 48px;justify-content:center}.dm-phone .dm-contact .dm-avatar{width:36px;height:36px}.dm-phone .dm-contact>div{gap:3px}
.dm-phone .dm-contact>div{width:100%;min-width:0;max-width:100%;text-align:center}
.dm-phone .dm-contact>div>a,.dm-phone .dm-contact>div>button,.dm-phone .dm-contact>div>strong{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4;margin:0}
.dm-phone .dm-contact>.dm-back{left:12px;top:50%;transform:translateY(-50%);width:32px;text-align:center}
.dm-phone .dm-contact>.dm-pin-button.header{right:10px;top:3px;width:32px;height:32px;padding:6px}
.dm-phone .dm-contact>.dm-contact-settings{position:absolute;right:10px;top:40px;width:32px;height:32px;display:grid;place-items:center;padding:6px;border-radius:50%;color:#a7b7c9;background:transparent}
.dm-phone .dm-contact>.dm-contact-settings svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor}
.dm-phone .dm-contact>.dm-contact-settings:hover{color:#62baff;background:#0092ff16}
.dm-phone .dm-contact:not(:has(.dm-pin-button.header))>.dm-contact-settings{top:50%;transform:translateY(-50%)}

/* The corner phone keeps its chrome compact so the thread list has room. */
.dm-embedded .dm-phone-inbox .dm-inbox{padding:0 12px 4px}.dm-embedded .dm-phone-inbox .dm-inbox-title h2{font-size:26px}.dm-embedded .dm-favorites{gap:10px 8px;padding:6px 3px 10px}.dm-embedded .dm-favorite .dm-avatar{width:52px;height:52px;font-size:21px}.dm-embedded .dm-favorite>a{gap:5px}.dm-embedded .dm-favorite>a>span:last-child{font-size:11px}.dm-embedded .dm-unpin{left:calc(50% - 31px)}.dm-embedded .dm-phone-inbox .dm-thread{padding-top:11px;padding-bottom:11px}.dm-embedded .dm-inbox-bottom{padding:10px 14px 0}.dm-embedded .dm-phone-inbox .dm-home-indicator{margin-top:10px}.dm-embedded .dm-phone-conversation .dm-contact{min-height:74px;padding-top:5px;padding-bottom:5px}
