.otto-chat{--chat-purple:#4b20b8;--chat-ink:#282336;--chat-muted:#7a7487;--chat-line:#e6e0ee;color:var(--chat-ink);font-family:inherit;width:100%;min-width:0}.otto-chat *{box-sizing:border-box}.otto-chat [hidden]{display:none!important}.otto-chat button,.otto-chat input,.otto-chat textarea,.otto-chat select{font:inherit}.otto-chat button{cursor:pointer}.otto-chat button:disabled{cursor:default;opacity:.55}.otto-chat button:focus-visible,.otto-chat input:focus-visible,.otto-chat textarea:focus-visible,.otto-chat select:focus-visible{outline:3px solid #cabbed;outline-offset:2px}.chat-top{display:flex;align-items:center;gap:24px;padding:8px 0 18px}.chat-brand{display:flex;align-items:center;gap:12px;margin-right:auto}.chat-brand h2{font-size:30px;line-height:1;margin:0 0 6px;font-weight:850;letter-spacing:-1px}.chat-brand p{margin:0;color:var(--chat-muted);font-size:12px}.chat-otto-mark{display:grid;place-items:center;width:46px;height:46px;background:#f1ecfb;border-radius:16px;color:var(--chat-purple);font-size:30px}.chat-sections{display:flex;gap:8px}.chat-sections button,.chat-refresh{border:0;background:transparent;color:var(--chat-ink);border-radius:20px;padding:10px 16px;font-size:13px;font-weight:750}.chat-sections .selected{background:var(--chat-purple);color:white}.chat-refresh{border:1px solid var(--chat-line);background:white}.chat-status{font-size:12px;min-height:18px;color:var(--chat-muted);margin:0 0 12px}.chat-status[data-error=true]{color:#a42637}.chat-layout{display:grid;grid-template-columns:260px minmax(300px,1fr) 265px;height:min(740px,calc(100vh - 250px));min-height:510px;background:white;border:1px solid var(--chat-line);border-radius:20px;overflow:hidden;box-shadow:0 8px 28px #33205005}.chat-sidebar{padding:18px 12px;overflow:auto;border-right:1px solid var(--chat-line)}.chat-audience{display:flex;gap:4px;background:#f8f6fc;border-radius:9px;padding:3px;margin-bottom:14px}.chat-audience button{flex:1;border:0;background:transparent;border-radius:7px;padding:8px 5px;font-size:12px;font-weight:750}.chat-audience button.selected{background:var(--chat-purple);color:white}.chat-audience small{display:block;font-size:9px;white-space:nowrap}.chat-search{display:block!important;margin:0 0 12px!important}.chat-search input{width:100%;min-width:0;border:1px solid var(--chat-line);border-radius:9px;padding:10px;font-size:12px;background:#fff}.chat-new{width:100%;border:1px solid #d7cbe9;background:#faf7ff;color:var(--chat-purple);font-weight:750;font-size:12px;padding:10px;border-radius:9px;margin-bottom:12px}.chat-start{padding:10px;border:1px solid var(--chat-line);border-radius:10px;margin-bottom:14px;display:grid;gap:10px;background:#fbfaff}.chat-start label{font-size:11px}.chat-start select{width:100%;font-size:12px;margin-top:5px;padding:8px;border:1px solid var(--chat-line);border-radius:6px}.chat-start button{border:0;background:var(--chat-purple);color:#fff;padding:9px;border-radius:7px;font-size:12px}.chat-conversation{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;background:transparent;border-radius:11px;padding:13px 9px;margin:3px 0;color:var(--chat-ink)}.chat-conversation.selected{background:#f0eafa}.chat-avatar{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:12px;background:#eae5f6;color:var(--chat-purple);font-weight:800}.chat-conversation-copy{min-width:0;flex:1}.chat-conversation strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-conversation small{display:block;margin-top:5px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--chat-muted)}.chat-count{background:var(--chat-purple);color:white;min-width:20px;height:20px;display:grid;place-items:center;border-radius:20px;font-size:10px;padding:0 4px}.chat-main{min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.chat-thread-head{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid var(--chat-line);min-height:84px}.chat-thread-head h3{font-size:16px;margin:0 0 6px}.chat-thread-head p{font-size:11px;color:var(--chat-muted);margin:0}.chat-back{display:none}.chat-history{flex:1;min-height:0;overflow:auto;padding:22px 24px;overscroll-behavior:contain}.chat-message{width:fit-content;max-width:85%;margin:0 0 22px}.chat-message.mine{margin-left:auto}.chat-message-meta{display:flex;align-items:baseline;gap:12px;margin-bottom:7px;font-size:10px}.chat-message-meta time{font-size:9px;color:var(--chat-muted)}.chat-bubble{border:1px solid #ebe6f2;border-radius:3px 15px 15px;padding:12px 15px;background:#f8f7fb}.mine .chat-bubble{background:#eee7fa;border-color:#e7dcf7;border-radius:15px 3px 15px 15px}.chat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin:0}.chat-bubble img{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:8px;margin-top:6px}.chat-delivery{display:block;text-align:right;color:var(--chat-muted);font-size:9px;margin-top:5px}.chat-composer{padding:14px 20px 18px;border-top:1px solid var(--chat-line);background:white}.chat-composer textarea{width:100%;min-height:66px;max-height:140px;resize:vertical;padding:12px;border:1px solid var(--chat-line);border-radius:11px;color:var(--chat-ink);font-size:13px;background:white}.chat-compose-actions{display:flex;align-items:center;gap:12px;margin-top:9px}.chat-compose-actions>span{font-size:10px;color:var(--chat-muted);flex:1}.chat-compose-actions button{background:var(--chat-purple);color:white;border:0;border-radius:10px;padding:11px 19px;font-weight:750;font-size:13px}.chat-attach{position:relative;overflow:hidden;display:inline-block!important;margin:0!important;flex:0 0 auto;color:var(--chat-purple);font-size:12px!important;cursor:pointer;padding:9px 4px}.chat-attach input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.chat-photo-preview{display:flex;align-items:center;gap:12px;margin-bottom:8px}.chat-photo-preview img{width:55px;height:50px;object-fit:cover;border-radius:7px}.chat-photo-preview button{border:0;background:#f1ebfa;color:var(--chat-purple);border-radius:8px;padding:8px;font-size:11px}.chat-details{padding:24px 20px;overflow:auto;border-left:1px solid var(--chat-line);font-size:12px;color:var(--chat-muted);line-height:1.6}.chat-details h3{font-size:15px;color:var(--chat-ink);margin:0 0 20px}.chat-details h4{font-size:12px;color:var(--chat-ink);margin:20px 0 10px}.chat-private{display:inline-block;background:#f1ebfa;color:var(--chat-purple);font-size:10px;font-weight:750;padding:5px 10px;border-radius:20px}.chat-person{display:flex;align-items:center;gap:10px;color:var(--chat-ink)}.chat-person small{display:block;color:var(--chat-muted);font-size:10px}.chat-job-card{margin-top:22px;padding:17px;border:1px solid var(--chat-line);border-radius:12px;background:#fcfbff}.chat-job-card>small{font-size:9px;font-weight:800;letter-spacing:.8px}.chat-job-card h4{margin:8px 0;font-size:17px}.chat-job-status{display:inline-block;padding:4px 9px;border-radius:20px;background:#eff9e8;color:#46782d;font-size:11px}.chat-job-card button{margin-top:16px;padding:10px;width:100%;background:white;border:1px solid #cbbbea;border-radius:8px;color:var(--chat-purple);font-size:12px;font-weight:750}.chat-confidential{margin-top:26px;font-size:11px}.chat-empty{padding:22px 10px;color:var(--chat-muted);font-size:12px;line-height:1.8}.chat-older{display:block;margin:0 auto 20px;border:1px solid var(--chat-line);border-radius:9px;padding:8px 12px;background:white;color:var(--chat-purple);font-size:11px}.chat-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.chat-inbox-entry{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border:1px solid #ded9eb;border-radius:14px;background:white;color:#4b20b8;font:inherit;font-weight:750;margin:14px 0;width:100%}.chat-inbox-entry span{font-size:12px}
@media(max-width:1150px){.chat-layout{grid-template-columns:230px minmax(280px,1fr)}.chat-details{display:none}}
@media(max-width:700px){.chat-top{flex-wrap:wrap;gap:12px}.chat-brand h2{font-size:25px}.chat-sections{order:3;width:100%}.chat-layout{display:block;height:70dvh;min-height:480px}.chat-sidebar{height:100%;border:0}.chat-main{display:none}.thread-open .chat-sidebar{display:none}.thread-open .chat-main{display:flex}.chat-back{display:block;border:0;border-radius:8px;background:#f1ecfb;color:var(--chat-purple);padding:9px;font-size:11px;white-space:nowrap}.chat-thread-head{padding:14px;min-height:78px}.chat-thread-head h3{font-size:14px}.chat-history{padding:18px 14px}.chat-composer{padding:12px}.chat-message{max-width:93%}.chat-compose-actions>span{font-size:9px}.chat-message-meta{gap:8px}.chat-composer textarea{font-size:16px}.chat-audience small{display:inline;margin-left:6px}.chat-refresh{padding:9px 12px}.chat-brand p{font-size:11px}}

.chat-header-job{display:none;border:1px solid #d4c7e7;background:white;color:#4b20b8;border-radius:8px;padding:8px;margin-left:auto;font-size:11px;white-space:nowrap}@media(max-width:1150px){.chat-header-job{display:block}}

/* Simple Staff / Customers messenger, shared with desktop. */
.chat-layout{grid-template-columns:300px minmax(0,1fr)}
.chat-details,.chat-header-job{display:none!important}
.chat-sidebar{padding:16px 12px}.chat-avatar{width:46px;height:46px;flex-basis:46px;border-radius:50%;font-size:17px}
.chat-conversation{padding:15px 10px;gap:12px}.chat-conversation strong{font-size:14px}.chat-conversation small{font-size:12px}
.chat-search input{border-radius:24px;background:#f7f5fb;padding:13px 16px;font-size:14px}
.chat-audience{border-radius:24px}.chat-audience button{border-radius:22px;font-size:13px;padding:10px}
.chat-new{border-radius:20px}.chat-top{padding:12px 0}.chat-status{margin-bottom:8px}
.bottom-nav-inner{grid-template-columns:repeat(6,minmax(0,1fr))}
#mobile-chat-unread:empty{display:none}#mobile-chat-unread{position:absolute;top:-7px;right:-12px;min-width:17px;padding:1px 4px;border-radius:10px;background:#4b20b8;color:white;font-size:10px}
.chats-page .company-announcements,.chats-page .preview-note,.chats-page .schedule-notices{display:none!important}
.chats-page .page-heading{display:grid}.chats-page .workspace{padding-top:10px}
@media(max-width:700px){
 .chat-layout{display:block;height:calc(100dvh - 230px);min-height:320px;border-radius:16px}
 .chat-sidebar{padding:14px 10px}.chat-conversation{padding:16px 8px}.chat-conversation strong{font-size:16px}.chat-conversation small{font-size:13px}
 .chat-brand h2{font-size:26px}.chat-audience button{min-height:44px}.chat-new{min-height:44px}
 .chat-main{height:100%}.chat-thread-head{min-height:68px}.chat-composer textarea{min-height:48px;max-height:90px}
 .chats-page .workspace{padding-left:12px;padding-right:12px}.chat-back{min-height:44px}
 .thread-open .chat-top{display:none}.thread-open .chat-layout{height:calc(100dvh - 164px)}
}

.chat-row-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.chat-row-meta time{font-size:10px;color:var(--chat-muted);white-space:nowrap}

/* Messages uses the same page header and OTTO strip as the other mobile pages. */
.chats-page #jobs>.chat-top{display:none}
@media(max-width:700px){.chats-page .chat-layout,.chats-page .thread-open .chat-layout{height:calc(100dvh - 390px);min-height:380px}.chats-page .bottom-nav button{font-size:10px}}

.otto-announcement-conversation{background:white;border:1px solid #e3dfec;border-radius:18px;padding:20px}.otto-announcement-conversation h2{margin:0}.otto-announcement-conversation>p{color:#7a7487;font-size:13px}.otto-announcement-conversation .schedule-notice{padding:16px;margin:16px 0;background:#f5f0fc;border:1px solid #e6dff0;border-radius:4px 16px 16px}.chat-back-to-inbox{padding:12px 16px;margin-bottom:12px;border:1px solid #ddd3ed;border-radius:12px;background:white;color:#4b20b8;font:inherit}.otto-announcement-conversation .announcement-count{font-size:12px;color:#4b20b8}

/* Clear, stable unread indicator in expanded and collapsed desktop menus. */
#toolChatBtn{position:relative;gap:12px}#toolChatBtn .ai-side-icon svg{stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}#toolChatBtn .messages-menu-label{flex:1;text-align:left}
:is(#desktopChatUnread,#desktopEmailUnread){display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:24px;height:24px;margin-left:auto;padding:0 7px;border-radius:20px;background:#5625c6;color:white;font-size:12px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--surface,#fff)}:is(#desktopChatUnread,#desktopEmailUnread):empty{display:none}
:is(#toolChatBtn,#toolAiBtn).has-unread .ai-side-icon{color:#5625c6}
html[data-sidebar-collapsed="true"] :is(#desktopChatUnread,#desktopEmailUnread){position:absolute;top:3px;right:3px;min-width:18px;height:18px;padding:0 4px;font-size:10px}
@media(max-width:900px){:is(#desktopChatUnread,#desktopEmailUnread){position:absolute;top:3px;right:3px;min-width:18px;height:18px;padding:0 4px;font-size:10px}}

#desktopChatRoot .messages-page-heading{margin-bottom:16px;border-bottom:1px solid var(--line,#dfe3e8)}#desktopChatRoot .messages-page-heading .chat-refresh{align-self:center}#desktopChatRoot .messages-page-heading .page-eyebrow{display:block;color:var(--purple,#4b20b8)}#desktopChatRoot .messages-heading-copy{min-width:0}#desktopChatRoot .chat-status{margin:0 0 16px}

:is(#toolChatBtn,#toolAiBtn) .messages-icon-wrap{position:relative;overflow:visible;flex-shrink:0}:is(#toolChatBtn,#toolAiBtn) :is(#desktopChatUnread,#desktopEmailUnread),html[data-sidebar-collapsed="true"] :is(#toolChatBtn,#toolAiBtn) :is(#desktopChatUnread,#desktopEmailUnread){position:absolute;top:-9px;left:-10px;right:auto;min-width:19px;height:19px;margin:0;padding:0 4px;font-size:10px;z-index:1}

.staff-request-icon-wrap{position:relative;overflow:visible!important}
.staff-request-count{position:absolute;left:-8px;top:-8px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#5923c6;color:#fff;border:2px solid #fff;font-size:11px;font-weight:800;line-height:1;z-index:2}
.staff-request-count[hidden]{display:none!important}
.profile-list-avatar{position:relative}
.staff-request-dot{position:absolute;right:-2px;top:-2px;width:12px;height:12px;border-radius:50%;background:#5923c6;border:2px solid #fff}

.staff-request-history>summary{cursor:pointer;display:list-item;padding:4px 0;color:#292334}
.staff-request-history>summary strong{margin-right:16px}
.staff-request-history>summary span{font-size:13px;color:#7c7187}
.staff-request-history>summary small{display:inline-block;margin-left:16px;font-size:12px;color:#5923c6}
.staff-request-history[open]>summary{padding-bottom:16px;border-bottom:1px solid #e8e0f0}
.staff-request-history-body{padding-top:8px}

/* Shared actionable notification badge, matching Messages. */
:is(#desktopChatUnread,#desktopEmailUnread),.staff-request-count,.staff-request-dot{display:grid;place-items:center;box-sizing:border-box;position:absolute;top:-9px!important;left:-10px!important;right:auto!important;min-width:19px;width:auto;height:19px;margin:0;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#5923c6;color:#fff;font-size:10px;font-weight:800;line-height:1;z-index:2}
:is(#desktopChatUnread,#desktopEmailUnread):empty,.staff-request-count[hidden]{display:none!important}

/* Icon hosts must not inherit overview text layout or collapsed label rules. */
[data-settings-route="teams"] .settings-nav-icon{display:grid!important;place-items:center!important;margin:0!important;color:var(--purple,#5923c6)!important;line-height:1!important}
html .staff-request-count,html .staff-request-dot,html :is(#desktopChatUnread,#desktopEmailUnread){display:grid!important;place-items:center!important;color:#fff!important;background:#5923c6!important;font-size:10px!important;font-weight:800!important;line-height:1!important;margin:0!important;opacity:1!important;min-width:19px!important;height:19px!important;padding:0 4px!important;border:2px solid #fff!important;border-radius:999px!important}
html .staff-request-count[hidden],html :is(#desktopChatUnread,#desktopEmailUnread):empty{display:none!important}
html [data-settings-route="teams"] .staff-request-count{left:calc(50% - 21px)!important;top:calc(50% - 20px)!important}

.request-history-group>summary{cursor:pointer;padding:14px 16px;border:1px solid #e2d9ec;border-radius:12px;color:#543283;background:#f8f5fc;font-weight:700;font-size:14px}.request-history-group[open]>summary{margin-bottom:12px}
