.cloud-workbench .cc-title{display:flex;align-items:center;gap:14px;margin-bottom:16px}.cc-title h1{font-size:20px;margin:0}.cloud-workbench .cc-layout{display:grid;grid-template-columns:290px minmax(280px,1fr) 290px;height:calc(100dvh - 120px);min-height:580px;border:1px solid var(--line);border-radius:14px;background:var(--bg-elevated);overflow:hidden}.cc-inbox,.cc-thread,.cc-buyer{min-width:0;min-height:0}.cc-inbox{display:flex;flex-direction:column;border-right:1px solid var(--line)}.cc-inbox-title{display:flex;align-items:center;justify-content:space-between;padding:14px 12px}.cc-inbox-title .button,.cc-thread-head .button{font-size:12px;padding:5px 9px;min-height:30px;white-space:nowrap}.cc-tabs{display:flex;gap:4px;padding:0 12px 10px}.cc-tabs button{flex:1;padding:8px 3px;border:1px solid transparent;border-radius:8px;background:var(--bg-subtle);color:var(--muted);font-size:12px;cursor:pointer}.cc-tabs button.active{color:#ee5636;background:#fff3ef;border-color:#ffd0c3}.cc-search{display:flex;gap:6px;padding:0 12px 10px}.cc-search select,.cc-search input{width:50%;min-width:0;height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--bg-elevated);font-size:12px}.cc-list{overflow:auto;flex:1;min-height:0}.cloud-workbench .cc-person{display:flex;align-items:center;gap:10px;width:calc(100% - 12px);margin:3px 6px;padding:12px 9px;border:0;border-radius:8px;text-align:left;color:var(--ink);background:transparent}.cloud-workbench .cc-person.selected{background:var(--bub-out-bg);box-shadow:inset 3px 0 #f65332}.cc-avatar{width:40px;height:40px;border-radius:50%;background:#5d6d85;color:white;display:inline-flex;align-items:center;justify-content:center;font-weight:600;flex:none;overflow:hidden}.cc-avatar img{width:100%;height:100%;object-fit:cover}.cc-person-text{min-width:0;flex:1}.cc-person-text>span{display:flex;justify-content:space-between;gap:5px}.cc-person-text b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}.cc-person-text time{font-size:10px;color:var(--muted);white-space:nowrap}.cc-person-text small,.cc-person-text em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted);margin-top:5px;font-style:normal}.cc-person-text em{font-size:10px}.cc-stamp{font-size:10px;color:var(--muted);margin:0;padding:8px 12px;border-top:1px solid var(--line)}.cc-thread{display:flex;flex-direction:column;background:var(--bg-subtle)}.cc-thread>.empty{margin:auto}.cc-thread-head{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--line);background:var(--bg-elevated)}.cc-thread-head>div{min-width:0;flex:1}.cc-thread-head small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;margin-top:5px}.cloud-workbench .cc-thread .messages{height:auto;flex:1;min-height:140px;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:14px}.cc-thread .messages>.button{align-self:center;font-size:11px;padding:6px 12px}.cloud-workbench .cc-thread .message{align-self:flex-start;max-width:85%;width:fit-content;margin:0;padding:12px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere}.cloud-workbench .cc-thread .message.mine{align-self:flex-end}.cc-thread .message small{display:block;color:var(--muted);font-size:10px;text-align:right;margin-top:6px}.cc-message-image{max-width:100%;max-height:280px;border-radius:8px}.cc-sticker{width:100px;height:100px;object-fit:contain}.cloud-workbench .cc-thread .chat-compose{display:block;border-top:1px solid var(--line);background:var(--bg-elevated);padding:12px 14px;margin:0}.cc-tools{display:flex;gap:7px;margin-bottom:9px}.cc-tools .button{font-size:12px;padding:4px 10px;min-height:28px}.cc-tools .button:last-child{color:#8553ff;background:#f5f1ff}.cloud-workbench .cc-thread textarea{width:100%;height:78px;min-height:60px;max-height:180px;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg-elevated);color:var(--ink);font:inherit}.cc-thread textarea:focus{outline:1px solid #f65332;border-color:#f65332}.cc-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.cc-compose-foot small{font-size:11px;color:var(--muted)}.cloud-workbench .cc-compose-foot .primary{background:#f65332;border-color:#f65332;color:white}.cc-buyer{border-left:1px solid var(--line);overflow:auto;padding:0 14px}.cc-buyer h2{font-size:14px;padding:18px 0;border-bottom:1px solid var(--line);margin:0 0 14px}.cc-buyer h3{font-size:13px;font-weight:500;margin:24px 0 12px}.cc-profile{background:var(--bg-subtle);border-radius:12px;padding:14px;display:grid;grid-template-columns:40px 1fr;gap:5px 10px}.cc-profile .cc-avatar{grid-row:1/3}.cc-profile>b{align-self:end;font-size:13px;overflow-wrap:anywhere}.cc-profile>small{font-size:11px;color:var(--muted)}.cc-profile dl{grid-column:1/-1;margin:10px 0 0;font-size:12px}.cc-profile dt{color:var(--muted);margin-top:9px}.cc-profile dd{margin:4px 0;overflow-wrap:anywhere}.cc-order{border:1px solid var(--line);border-radius:9px;padding:12px;margin:8px 0;font-size:12px;overflow-wrap:anywhere}.cc-order>b{display:block;margin-bottom:7px}.cc-order p{line-height:1.6}.cc-buyer .hint{line-height:1.7;font-size:12px}
@media(max-width:1250px){.cloud-workbench .cc-layout{grid-template-columns:250px minmax(250px,1fr) 240px}.cc-thread-head .cc-avatar{display:none}.cc-person-text time{font-size:9px}}
@media(max-width:1050px){.cloud-workbench .cc-layout{grid-template-columns:240px minmax(0,1fr);height:auto;min-height:600px}.cc-inbox{grid-row:1/3;max-height:850px}.cc-thread{height:650px}.cc-buyer{grid-column:2;border-top:1px solid var(--line);max-height:400px}}
@media(max-width:760px){.cloud-workbench .cc-layout{display:flex;flex-direction:column;height:auto;min-height:0}.cc-inbox{max-height:320px;border-right:0;border-bottom:1px solid var(--line)}.cc-list{min-height:120px}.cc-thread{height:650px;flex:none}.cc-buyer{border-left:0;max-height:none;padding-bottom:15px}.cc-thread-head{flex-wrap:wrap}.cc-title{flex-wrap:wrap}.cc-title .badge{font-size:10px}.cc-thread .messages{padding:12px}.cc-person-text b{max-width:none}}
/* Compact mobile inbox plus a full-height conversation, with all controls reachable. */
@media(max-width:760px){
 .cloud-workbench .cc-title{margin-bottom:2px;gap:6px}
 .cc-title h1{font-size:18px}
 .cloud-workbench .cc-layout{border-radius:10px}
 .cloud-workbench .cc-inbox{height:250px;max-height:250px;flex:none}
 .cc-inbox-title{padding:8px 10px}
 .cc-tabs{padding:0 8px 6px}
 .cc-tabs button{padding:6px 2px}
 .cc-search{padding:0 8px 6px}
 .cc-search input{font-size:16px}
 .cc-list{min-height:70px}
 .cloud-workbench .cc-person{padding:8px 6px;gap:7px}
 .cc-avatar{width:32px;height:32px}
 .cc-person-text small{margin-top:3px}
 .cc-person-text em{margin-top:2px}
 .cc-stamp{padding:4px 9px}
 .cloud-workbench .cc-thread{height:calc(100dvh - 70px);min-height:380px;scroll-margin-top:58px}
 .cc-thread-head{padding:8px;gap:6px}
 .cc-thread-head .button{font-size:11px}
 .cloud-workbench .cc-thread .messages{min-height:80px;padding:10px}
 .cloud-workbench .chat-compose{padding:8px;background:var(--bg-elevated);gap:6px;flex:none}
 .cloud-workbench .chat-compose textarea{font-size:16px;min-height:64px;max-height:120px;resize:vertical}
 .cloud-workbench .cc-compose-foot{gap:5px;padding-bottom:env(safe-area-inset-bottom,0px)}
 .cloud-workbench .cc-compose-foot small{font-size:10px}
 .cloud-workbench .cc-compose-foot .button{padding:8px 14px;min-height:40px}
}
/* Match the original desktop three-column chat desk. */
.cloud-workbench .cc-title{height:32px;min-height:32px;margin:0;gap:12px}
.cloud-workbench .cc-title h1{font-size:20px}
.cloud-workbench .cc-layout{grid-template-columns:250px minmax(0,1fr) 280px;height:calc(100dvh - 92px);min-height:430px;border-radius:14px;flex:none}
.cc-inbox-title{height:48px;flex:none;padding:0 12px 0 14px;gap:7px;border-bottom:1px solid var(--line-soft)}
.cc-inbox-title b{font-size:13px;white-space:nowrap}
.cc-conversation-count{margin-left:auto;font-size:10px;color:var(--muted);white-space:nowrap}
.cc-inbox-title .button{width:29px;height:29px;padding:5px}
.cc-tabs{padding:8px 12px 6px;gap:4px}
.cc-tabs button{height:30px;padding:4px 2px;font-size:12px}
.cc-search{padding:4px 12px 10px;border-bottom:1px solid var(--line)}
.cc-search select,.cc-search input{height:31px;font-size:12px}
.cloud-workbench .cc-person{padding:10px 9px;min-height:61px;gap:10px;border-radius:10px}
.cc-person-text b{font-size:12px;max-width:125px}
.cc-person-text small{font-size:11px;margin-top:4px}
.cc-person-text time{font-size:10px}
.cc-person-text{overflow:hidden}.cc-avatar{width:40px;height:40px}
.cc-stamp{display:none}
.cc-thread-head{height:58px;min-height:58px;padding:8px 12px;gap:9px;flex-wrap:nowrap}
.cc-thread-head .cc-avatar{display:inline-flex;width:36px;height:36px}
.cc-thread-head .cc-head-person{flex:0 1 120px;min-width:55px;overflow:hidden}
.cc-head-person>b{display:block;font-size:13px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.cc-head-person small{font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cc-shop-tag{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:var(--muted);background:var(--bg-subtle);border:1px solid var(--line);border-radius:20px;padding:5px 10px}
.cc-thread-head .cc-head-actions{display:flex;gap:6px;flex:none}
.cc-head-actions .button{padding:5px 9px;font-size:11px;gap:4px}
.cc-head-actions svg{width:12px;height:12px}
.cloud-workbench .cc-thread .messages{padding:12px 16px;gap:10px;background:var(--bg-subtle)}
.cloud-workbench .cc-thread .messages>.button{align-self:flex-start}
.cloud-workbench .cc-thread .message{border:0;background:transparent;box-shadow:none;padding:0;border-radius:0;max-width:88%;white-space:normal;font-size:13px}
.cc-message-body{padding:10px 13px;background:var(--bg-elevated);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-xs);white-space:pre-wrap;overflow-wrap:anywhere}
.mine .cc-message-body{background:var(--bub-out-bg,#fff4ef);border-color:var(--brand-border,#ffd8ca)}
.message small{padding:0 4px;margin-top:5px;font-size:10px}
.cc-message-body:has(.pcard){padding:0;background:var(--bg-elevated)}
.cc-message-body .pcard{width:320px;max-width:100%;padding:10px;display:flex;gap:9px;white-space:normal;border:0;box-shadow:none}
.cc-message-body .pcard img{width:60px;height:70px;object-fit:contain;flex:none}
.cc-message-body .pi{min-width:0;flex:1}.cc-message-body .pi b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px}
.cc-message-body .pi>span{font-size:12px;color:var(--brand);display:block;margin:6px 0}
.cc-product-links{display:flex;gap:7px;font-size:11px;color:var(--brand)}
.cc-message-video{max-width:100%;max-height:240px}
.cloud-workbench .cc-thread .chat-compose{padding:8px 12px 10px}
.cc-tools{align-items:center;gap:4px;margin-bottom:8px}
.cloud-workbench .cc-tools .cc-tool{border:0;background:transparent;color:var(--sub);padding:5px;min-height:28px;width:30px;box-shadow:none}
.cc-tools svg{width:17px;height:17px}
.cc-tool-sep{height:18px;border-left:1px solid var(--line);margin:0 4px}
.cloud-workbench .cc-tools .cc-quick{display:flex;align-items:center;gap:4px;padding:5px 9px;border-color:#e6dfff;color:#8553ff;background:#f6f2ff;font-size:12px}
.cloud-workbench .cc-thread textarea{font-size:13px;height:64px;min-height:58px;padding:10px 12px;background:var(--bg-subtle)}
.cc-compose-foot{margin-top:7px}.cc-compose-foot small{font-size:10px}
.cloud-workbench .cc-compose-foot .primary{gap:5px;font-size:12px;padding:9px 13px;box-shadow:0 3px 8px #f6533233}
.cc-compose-foot .primary svg{width:16px;height:16px}
.cc-buyer{display:flex;flex-direction:column;padding:0;overflow:hidden}
.cc-buyer>h2{height:48px;min-height:48px;margin:0;padding:15px 16px;font-size:13px}
#cc-buyer-content{padding:14px;overflow:auto;min-height:0;flex:1}
.cc-buyer .buyer-meta{overflow:hidden}.cc-buyer .copy-id{font-size:10px;border:0;padding:0;background:transparent;text-align:left}
.buyer-actions{display:flex;gap:5px}.cloud-workbench .buyer-actions .button{font-size:11px;padding:5px 4px;flex:1;white-space:nowrap}
.cc-buyer .order-sec-head{margin:14px 0 10px;font-size:12px;gap:8px}
.cloud-workbench .order-sec-head .button{padding:3px 7px;font-size:11px}
.cc-buyer .oitem img{width:44px;height:44px;max-width:44px;object-fit:cover}
.cc-buyer .oitem .oi{min-width:0}.cc-buyer .oitem .oi b{font-size:11px}
.cc-buyer .ocard-foot{padding:8px;text-align:right}.cc-buyer .ocard-foot .button{font-size:11px;padding:5px 8px}
.cc-emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.cc-emoji-grid .button{font-size:23px;padding:6px}
.cc-sticker-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.cc-sticker-grid img{width:100%;height:70px;object-fit:contain}.cc-sticker-grid button{padding:2px}
.cc-upload-preview{max-width:100%;max-height:220px;object-fit:contain}.cc-replies{display:grid;gap:6px}
@media(min-width:761px) and (max-width:1199px){.cloud-workbench .cc-layout{grid-template-columns:210px minmax(0,1fr) 230px}.cc-thread-head .cc-avatar{display:none}.cc-shop-tag{display:none}.cc-thread-head .cc-head-person{flex:1}.cc-compose-foot small{max-width:160px}.cc-buyer #cc-buyer-content{padding:10px}}
@media(min-width:761px) and (max-width:999px){.cloud-workbench .cc-layout{grid-template-columns:200px minmax(0,1fr);height:auto}.cc-buyer{grid-column:2;max-height:350px}.cc-inbox{grid-row:1/3;max-height:1000px}.cc-thread{height:650px}}
@media(max-width:760px){
 .cloud-workbench .cc-title{height:auto;min-height:24px}.cloud-workbench .cc-title h1{font-size:18px}
 .cloud-workbench .cc-layout{height:auto;min-height:0;display:flex}
 .cloud-workbench .cc-inbox{height:250px;max-height:250px}
 .cc-inbox-title{height:40px}.cc-search input{font-size:16px}
 .cloud-workbench .cc-thread{height:calc(100dvh - 70px);min-height:380px;scroll-margin-top:58px}
 .cc-thread-head{height:auto;min-height:56px;padding:7px;gap:6px}.cc-shop-tag{display:none}.cc-thread-head .cc-head-person{flex:1}
 .cc-head-actions .button{padding:5px 7px}.cc-thread-head .cc-avatar{width:30px;height:30px}
 .cloud-workbench .cc-thread .messages{min-height:80px;padding:10px}
 .cloud-workbench .cc-thread textarea{font-size:16px;height:66px}
 .cc-compose-foot small{max-width:200px;line-height:1.5}
 .cc-buyer{display:flex;max-height:none;overflow:visible}#cc-buyer-content{overflow:visible}
 .cc-message-body .pcard{width:260px}.cc-sticker-grid{grid-template-columns:repeat(4,1fr)}
}
.cc-mobile-only{display:none!important}
@media(max-width:760px){
 body.mobile-chat-page{position:fixed;inset:0;overflow:hidden;overscroll-behavior:none}
 body.mobile-chat-page #root{height:100%;overflow:hidden}
 body.mobile-chat-page .cloud-workbench{position:fixed;left:0;right:0;top:var(--chat-top,0px);height:min(var(--chat-height,100dvh),100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body.mobile-chat-page .cloud-workbench .mobile-bar{position:relative;top:auto;height:48px;min-height:48px;flex:none;box-sizing:border-box;padding:5px 10px}
 body.mobile-chat-page .cloud-workbench .main{flex:1;height:auto;min-height:0;padding:0;overflow:hidden}
 body.mobile-chat-page .cloud-workbench .wb-content{height:100%;min-height:0;gap:0;padding:0;overflow:hidden}
 body.mobile-chat-page .cc-title{display:none}
 body.mobile-chat-page .cloud-workbench .cc-layout{display:flex;width:100%;height:100%;min-height:0;flex:1;border:0;border-radius:0;overflow:hidden}
 body.mobile-chat-page .cloud-workbench .cc-inbox,body.mobile-chat-page .cloud-workbench .cc-thread,body.mobile-chat-page .cloud-workbench .cc-buyer{display:none;flex:1;width:100%;height:100%;min-height:0;max-height:none;border:0;overflow:hidden}
 body.mobile-chat-page .cc-layout[data-mobile-panel=list] .cc-inbox,body.mobile-chat-page .cc-layout[data-mobile-panel=thread] .cc-thread,body.mobile-chat-page .cc-layout[data-mobile-panel=buyer] .cc-buyer{display:flex;flex-direction:column}
 body.mobile-chat-page .cc-inbox-title{height:42px;min-height:42px;padding:0 14px}
 body.mobile-chat-page .cc-tabs{padding:7px 12px;flex:none}.cc-tabs button{touch-action:manipulation}
 body.mobile-chat-page .cc-tabs button{height:36px;font-size:13px}
 body.mobile-chat-page .cc-search{padding:3px 12px 10px;flex:none}
 body.mobile-chat-page .cc-search input,body.mobile-chat-page .cc-search select{height:38px;font-size:16px}
 body.mobile-chat-page .cc-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:env(safe-area-inset-bottom)}
 body.mobile-chat-page .cloud-workbench .cc-person{min-height:70px;padding:12px;gap:12px}
 body.mobile-chat-page .cc-person-text b{max-width:none;font-size:14px}
 body.mobile-chat-page .cc-person-text small{font-size:12px}
 body.mobile-chat-page .cc-mobile-only{display:inline-flex!important;flex:none;min-height:36px;align-items:center;justify-content:center;padding:5px 8px;font-size:12px;white-space:nowrap}
 body.mobile-chat-page .cc-thread-head{height:54px;min-height:54px;flex:none;gap:6px;padding:6px 8px}
 body.mobile-chat-page .cc-thread-head .cc-avatar{display:none}
 body.mobile-chat-page .cc-thread-head .cc-head-person{flex:1;min-width:0}
 body.mobile-chat-page .cc-head-actions .button{padding:5px 7px;min-height:36px}
 body.mobile-chat-page .cc-head-actions [data-action=chat-refresh]{display:inline-flex;width:32px;font-size:0;padding:6px}body.mobile-chat-page .cc-head-actions [data-action=chat-refresh] svg{width:16px;height:16px}
 body.mobile-chat-page .cc-thread .messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px;gap:10px}
 body.mobile-chat-page .cc-thread .message{font-size:14px;max-width:90%}
 body.mobile-chat-page .cc-thread .chat-compose{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;margin:0;padding:6px 10px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg-elevated)}
 body.mobile-chat-page .cc-tools{grid-column:1/-1;display:flex;flex-wrap:nowrap;gap:3px;margin:0;min-width:0}
 body.mobile-chat-page .cloud-workbench .cc-tools .cc-tool{height:36px;min-height:36px;width:34px;padding:6px;flex:none}
 body.mobile-chat-page .cc-tool-sep{margin:0 2px}
 body.mobile-chat-page .cloud-workbench .cc-tools .cc-quick{height:36px;padding:4px 6px;font-size:11px;white-space:nowrap}
 body.mobile-chat-page .cc-thread textarea{grid-column:1;grid-row:2;width:100%;height:44px;min-height:44px;max-height:80px;font-size:16px;line-height:22px;padding:10px;resize:none;box-sizing:border-box}
 body.mobile-chat-page .cc-compose-foot{grid-column:2;grid-row:2;margin:0;align-self:stretch}
 body.mobile-chat-page .cc-compose-foot small{display:none}
 body.mobile-chat-page .cloud-workbench .cc-compose-foot .primary{height:44px;min-width:62px;padding:8px 10px;font-size:13px;white-space:nowrap}
 body.mobile-chat-page .chat-compose [data-error]{grid-column:1/-1;grid-row:3;margin:0;font-size:12px;max-height:64px;overflow:auto}
 body.mobile-chat-page .chat-compose [data-error]:empty{display:none}
 body.mobile-chat-page .cc-buyer>h2{display:flex;align-items:center;gap:14px;height:54px;min-height:54px;padding:6px 10px;flex:none}
 body.mobile-chat-page #cc-buyer-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 12px max(12px,env(safe-area-inset-bottom))}
 body.mobile-chat-page .cc-buyer .oitem img{object-fit:contain}
 body.mobile-chat-page .cloud-workbench .side,body.mobile-chat-page .cloud-workbench .menu-shade{height:min(var(--chat-height,100dvh),100dvh);max-height:min(var(--chat-height,100dvh),100dvh);top:var(--chat-top,0px)}
}
.cc-mobile-shop{display:none}
@media(max-width:760px){body.mobile-chat-page .cc-head-person>small:not(.cc-mobile-shop){display:none}body.mobile-chat-page .cc-head-person .cc-mobile-shop{display:block;font-size:10px;line-height:16px}}
