/* Unread conversations and message previews. Keep the composer and primary
   business actions visible on both the native desktop and narrow screens. */
.top-actions .wt-inbox-button{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 10px;border:1px solid #c8d5e8;background:#fff;color:#315375;white-space:nowrap;border-radius:9px;font-size:12px;font-weight:650}
.wt-inbox-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;flex:none}
.top-actions .wt-inbox-button.has-unread{background:#eff6ff;border-color:#9dbdf0;color:#1d4ed8}
#wt-inbox-count,.wt-chat-unread,.wt-branch-unread{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#d9364e;color:#fff;font-size:10px;line-height:1;font-weight:750}
#wt-inbox-count[hidden],.wt-chat-unread[hidden],.wt-branch-unread[hidden]{display:none!important}
.rail:not(:where([data-desk-owner])) [data-view="chat"],.mobile-bottom-nav [data-view="chat"],.branches [data-branch]{position:relative}
.rail:not(:where([data-desk-owner])) .wt-chat-unread{position:absolute;right:1px;top:0;box-shadow:0 0 0 2px #fff}
.mobile-bottom-nav .wt-chat-unread{position:absolute;right:calc(50% - 24px);top:1px;box-shadow:0 0 0 2px #fff}
.branches .wt-branch-unread{flex:none;margin-left:auto}
.wt-inbox-help{color:#62748b;font-size:13px;line-height:1.65;margin:0 0 15px}
#wt-inbox-list{display:grid;gap:8px}
.wt-inbox-row{display:flex;align-items:center;gap:12px;width:100%;min-height:86px;padding:14px;text-align:left;border:1px solid #d9e3ef;background:#fff;border-radius:12px;color:#1e334e;cursor:pointer}
.wt-inbox-row:hover{background:#f1f6fe;border-color:#a8c4ed}
.wt-inbox-row:focus-visible,.wt-inbox-button:focus-visible{outline:3px solid #8ab4f8;outline-offset:2px}
.wt-inbox-avatar{display:flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;border-radius:13px;background:#e8effa;color:#345b8a;font-size:12px;font-weight:700}
.wt-inbox-content{display:grid;gap:4px;flex:1;min-width:0}
.wt-inbox-content strong{font-size:14px}.wt-inbox-content small{font-size:11px;color:#75869b}
.wt-inbox-content>span{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#546982}
.wt-inbox-row>b{background:#d9364e;color:#fff;border-radius:12px;padding:3px 8px;font-size:12px;flex:none}
.wt-inbox-empty{padding:30px 16px;text-align:center;background:#f6f8fc;border-radius:12px;color:#49617e}.wt-inbox-empty p{font-size:13px;color:#75869b;margin:9px 0 0}
.wt-compose-latest.has-unread{background:#1d5fce!important;color:#fff!important;border-color:#1d5fce!important;box-shadow:0 4px 16px #1d5fce30}
.wt-message-alerts{position:fixed;right:20px;bottom:22px;width:min(352px,calc(100vw - 32px));z-index:1500;display:grid;gap:10px;pointer-events:none}
.wt-message-alert{position:relative;border:1px solid #b9cce4;background:#fff;border-radius:13px;box-shadow:0 8px 32px #223c6424;pointer-events:auto;overflow:hidden}
.wt-message-alert-open{display:grid;gap:7px;width:100%;padding:15px 37px 15px 16px;background:transparent;border:0;text-align:left;color:#1b365c;cursor:pointer}
.wt-message-alert-open strong{font-size:14px}.wt-message-alert-open>span{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#526b88}.wt-message-alert-open small{font-size:11px;color:#2563aa}
.wt-message-alert-close{position:absolute;right:6px;top:6px;width:28px;height:28px;border:0;background:transparent;color:#7890ad;border-radius:6px;font-size:20px;cursor:pointer}
.wt-message-alert-close:hover{background:#eaf0f8}.wt-message-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wt-notification-focus{outline:2px solid #67a0f2;outline-offset:5px;border-radius:8px;background:#eef5ff80;transition:background .3s ease}
@media(max-width:1100px){.top-actions .wt-inbox-button{padding:7px}.wt-inbox-label{display:none}}
@media(max-width:760px){.top-actions .wt-inbox-button{min-width:34px;min-height:34px;padding:6px;gap:3px}.wt-inbox-button svg{width:17px;height:17px}#wt-inbox-count{min-width:17px;height:17px;font-size:9px}.wt-message-alerts{right:12px;bottom:calc(78px + env(safe-area-inset-bottom));width:min(352px,calc(100vw - 24px))}.wt-inbox-row{gap:9px;padding:11px}.wt-inbox-avatar{width:35px;height:35px}.wt-inbox-content strong{font-size:13px}.wt-inbox-content>span{font-size:12px}}
@media print{.wt-message-alerts,.wt-inbox-button,.wt-chat-unread,.wt-branch-unread{display:none!important}}
