.conversation-log{display:flex;flex-direction:column;gap:14px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9fb4a8 transparent;padding:20px;background:#f4f6f1;min-height:220px;max-height:560px;caret-color:#1e5345}
.conversation-log::selection,.inbox-layout ::selection{background:#d8e8dd;color:#183b30}
.conversation-message{width:fit-content;max-width:min(88%,70ch);padding:12px 15px;border-radius:14px;background:#fff;color:#182e28;overflow-wrap:anywhere;flex-shrink:0}
.conversation-message.outbound{align-self:flex-end;background:#e2ede4;border-bottom-right-radius:4px}.conversation-message.inbound{align-self:flex-start;border-bottom-left-radius:4px}
.conversation-message-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;font-size:12px;color:#38584a}.conversation-message-head time{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#52685b}
.conversation-message p{white-space:pre-wrap;line-height:1.6;margin:7px 0;max-width:70ch}.conversation-message small{display:block;font-size:11px;line-height:1.5}.conversation-delivery{color:#405c4d}.conversation-error{color:#8c3b24}
.conversation-empty{margin:auto;max-width:44ch;padding:35px 15px;text-align:center;color:#506759}.conversation-empty b{display:block;color:#243f32;font-size:16px}.conversation-empty p{margin-top:10px;line-height:1.6}
.conversation-composer{padding:18px 20px;border-top:1px solid #e0e7de;background:#fff;display:grid;gap:10px}.conversation-composer label{font-size:12px;font-weight:600;color:#365345}.conversation-composer textarea{display:block;width:100%;min-height:88px;max-height:220px;resize:vertical;border:1px solid #cdd8cc;border-radius:10px;padding:12px;background:#fbfcf9;caret-color:#1e5345}.conversation-composer textarea::placeholder{color:#607462}.conversation-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.conversation-composer small{color:#506759;line-height:1.5}.conversation-composer button{min-height:44px;padding:10px 18px;border-radius:10px;background:#1e5345;color:#fff;font-weight:600;flex-shrink:0}.conversation-composer button:disabled{cursor:not-allowed;opacity:.55}.conversation-composer button:hover:not(:disabled){background:#163e33}
.object-chat .conversation-log{margin:16px 0;border-radius:12px}.object-chat-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.object-chat-heading a{font-size:13px;color:#1e5345;text-decoration:underline;text-underline-offset:3px}.object-chat .conversation-composer{padding:18px 0;border-top:1px solid #e0e7de}.object-chat .conversation-composer p{font-size:12px;color:#506759}
.inbox-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.inbox-search{flex:1;max-width:460px;display:grid;gap:6px;font-size:12px;font-weight:600}.inbox-search input{width:100%;border:1px solid #cdd8cc;border-radius:10px;background:#fff;padding:12px 14px;min-height:44px;caret-color:#1e5345}.inbox-search input::placeholder{color:#607462}.inbox-sender{display:flex;align-items:center;gap:14px;font-size:12px;color:#385544}.inbox-sender small{display:block;max-width:45ch;color:#536a59;line-height:1.5}.inbox-sender button,.inbox-back{min-height:42px;padding:9px 13px;border:1px solid #bfd0c2;border-radius:10px;color:#1e5345;background:#fff;font-weight:600;flex-shrink:0}.inbox-sender button:disabled{cursor:wait}
.inbox-layout{display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);border:1px solid #dce4d9;border-radius:14px;overflow:hidden;background:#fff;min-height:560px;height:min(760px,calc(100dvh - 260px));color:#182e28}.inbox-objects{overflow:auto;scrollbar-width:thin;scrollbar-color:#9fb4a8 transparent;border-right:1px solid #e0e7de;background:#fcfdf9}.inbox-object+.inbox-object{border-top:1px solid #e0e7de}.inbox-object-heading{padding:18px 16px 10px;display:flex;gap:10px;align-items:center}.inbox-object-heading img{width:44px;height:44px;border-radius:8px;object-fit:cover}.inbox-object-heading a{display:block;line-height:1.4;font-size:13px;font-weight:600}.inbox-object-heading a:hover{text-decoration:underline;text-underline-offset:3px}.inbox-object-heading small{display:block;font-size:11px;color:#536a59;margin-top:3px}.inbox-thread{display:block;width:100%;padding:12px 16px;text-align:left;border-radius:0;line-height:1.5;border:0;background:transparent}.inbox-thread:hover:not(:disabled){background:#edf3ea;transform:none}.inbox-thread[aria-pressed=true]{background:#e5efe3}.inbox-thread strong{font-size:13px;display:block}.inbox-thread .inbox-thread-manager{display:block;color:#486351;font-size:11px;margin:2px 0 4px}.inbox-thread p{font-size:12px;color:#3d5748;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0;overflow-wrap:anywhere}.inbox-thread small{font-size:11px;color:#536a59}.inbox-thread .inbox-thread-alert{color:#8c3b24}
.inbox-workspace{display:flex;flex-direction:column;min-width:0;min-height:0}.inbox-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #e0e7de;flex-shrink:0}.inbox-header h2{font-size:18px;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}.inbox-header p{font-size:12px;color:#506759;margin:5px 0 0}.inbox-header a{font-size:12px;color:#1e5345;text-decoration:underline;text-underline-offset:3px}.inbox-back{display:none}.inbox-workspace .conversation-log{flex:1;min-height:180px;max-height:none}.inbox-workspace .conversation-composer{flex-shrink:0}.inbox-task{padding:12px 20px;border-top:1px solid #e0e7de;background:#fafbf7}.inbox-task p{font-size:12px;color:#506759;line-height:1.6;max-width:70ch}.inbox-task button{margin-top:10px;min-height:42px;background:#1e5345;color:#fff;border-radius:10px;padding:10px 14px;font-weight:600}.inbox-task button:disabled{cursor:not-allowed;opacity:.55}.inbox-feedback{font-size:12px;color:#8c3b24;min-height:20px;margin-bottom:8px}.inbox-sync{font-size:11px;color:#506759;margin:12px 0}.inbox-layout button:focus-visible,.inbox-toolbar button:focus-visible{outline:2px solid #1e5345;outline-offset:-3px}.inbox-nav-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.inbox-toolbar{align-items:stretch;flex-direction:column;gap:14px}.inbox-search{max-width:none}.inbox-sender{justify-content:space-between}.inbox-layout{grid-template-columns:1fr;min-height:460px;height:calc(100dvh - 255px)}.inbox-layout:not(.has-thread) .inbox-workspace{display:none}.inbox-layout.has-thread .inbox-objects{display:none}.inbox-objects{border-right:0}.inbox-header{padding:14px;align-items:center;flex-wrap:wrap}.inbox-header h2{font-size:16px}.inbox-header a{font-size:11px}.inbox-back{display:inline-flex;align-items:center;gap:6px;min-height:38px;font-size:12px;padding:6px 10px}.conversation-log{padding:14px;max-height:62dvh}.conversation-message{max-width:94%;padding:11px 13px}.conversation-message-head{gap:12px}.conversation-composer{padding:14px}.conversation-composer-footer{align-items:flex-end}.conversation-composer textarea{min-height:76px}.inbox-task{padding:12px 14px}.inbox-sender small{font-size:11px}.inbox-nav-icon{width:18px;height:18px}}

.inbox-task .inquiry-progress-detail{color:#506759}.inbox-task .inquiry-progress{margin-bottom:0}
@media(max-width:760px){#chats-view.is-thread-open .inbox-toolbar{display:none}body:has(#chats-view.is-thread-open:not(.hidden)) .page-heading{display:none}#chats-view.is-thread-open .inbox-layout{height:calc(100dvh - 190px)}}

/* Chat work occupies the viewport; only lists and history scroll. */
body:has(#chats-view:not(.hidden)) .area-nav,body:has(#chats-view:not(.hidden)) .area-label{display:none!important}
body:has(#chats-view:not(.hidden)) .main{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body:has(#chats-view:not(.hidden)) .topbar{flex-shrink:0}
body:has(#chats-view:not(.hidden)) .content{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding-bottom:14px}
body:has(#chats-view:not(.hidden)) .page-heading{flex-shrink:0;margin-bottom:20px}
#chats-view:not(.hidden){display:flex;flex:1;min-height:0;flex-direction:column}
#chats-view .inbox-toolbar,#chats-view .inbox-sync{flex-shrink:0}
#chats-view .inbox-feedback:empty{display:none}
#chats-view .inbox-layout{flex:1;min-height:0;height:auto}
#chats-view .conversation-log{min-height:0}
.conversation-composer textarea:disabled{background:#f3f5ef;color:#607462;cursor:not-allowed}
@media(max-width:760px){body:has(#chats-view:not(.hidden)) .workspace{display:flex;flex-direction:column;height:100dvh}body:has(#chats-view:not(.hidden)) .sidebar{flex-shrink:0}body:has(#chats-view:not(.hidden)) .main{height:auto;flex:1;min-height:0}body:has(#chats-view:not(.hidden)) .content{padding-top:14px;padding-bottom:8px}.sidebar #nav button{min-width:44px;min-height:44px;justify-content:center}.inbox-sync{margin:8px 0 0}#chats-view.is-thread-open .inbox-layout{height:auto}}
@media(max-width:560px){.sidebar #nav button[data-view=smart],.sidebar #nav button[data-view=saved]{display:none}.sidebar #nav b{display:none}.sidebar #nav{gap:0}.sidebar #nav button{padding:8px;flex:0 0 44px}.sidebar .brand{min-width:0}}
@media(max-width:380px){.sidebar .brand>span:last-child{display:none}}
@media(min-width:561px){#mobile-links button[data-view=smart],#mobile-links button[data-view=saved]{display:none}}
body:has(#chats-view:not(.hidden)) footer{display:none}
#chats-view .inbox-layout{grid-template-rows:minmax(0,1fr)}
body:has(#chats-view:not(.hidden)) .page-heading h1{margin-top:0;margin-bottom:6px}
@media(min-width:761px){body:has(#chats-view:not(.hidden)) .content{padding-top:24px}#chats-view .inbox-toolbar{margin-bottom:12px}}
@media(max-width:560px){.inbox-header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 12px}.inbox-header>div{min-width:0}.inbox-header>a{grid-column:2}.inbox-header .inbox-back{grid-row:1/span 2}}
body:has(#chats-view:not(.hidden)) #area-chips{display:none!important}
.inbox-workspace .conversation-composer textarea:disabled{min-height:44px;height:44px;max-height:44px;resize:none}
