:root{--ink:#172f40;--muted:#7c8c99;--line:#e4ebee;--bg:#f5f7f9;--teal:#087f80;--tealbg:#e8f5f2;--red:#b94b4d;--orange:#a66b29;--shadow:0 5px 22px #243f4d05}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a{cursor:pointer}button{border:1px solid var(--line);border-radius:8px;background:white;padding:8px 12px;color:var(--ink)}button:hover{border-color:#99c9c4;background:#f4fbf9}button:disabled{opacity:.45;cursor:not-allowed}button.primary,.primary{color:white;background:var(--teal);border-color:var(--teal)}button.primary:hover{background:#086a6c}.secondary{background:var(--tealbg);color:var(--teal);border-color:transparent}.danger{color:var(--red);border-color:#f1d3d0}a{color:var(--teal);text-decoration:none}input,textarea,select{background:white;color:var(--ink);border:1px solid #dce5e9;border-radius:7px;padding:9px 12px;max-width:100%}textarea{resize:vertical;line-height:1.8}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #a6d8d0;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.5px;font-weight:650}h2{font-size:16px}h3{font-size:14px}small,.sub{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.error{color:var(--red)}.eyebrow{color:var(--teal);font-size:10px;letter-spacing:1.8px;font-weight:650;margin-bottom:10px}.logomark{display:grid;place-items:center;width:37px;height:39px;border-radius:11px;background:var(--teal);color:white;font-size:22px;flex:none}.login{width:min(400px,calc(100% - 40px));margin:8vh auto;background:white;border:1px solid var(--line);padding:32px;border-radius:20px;box-shadow:var(--shadow)}.login .logomark{margin-bottom:30px}.login h1{font-size:32px;margin-bottom:10px}.login p{color:var(--muted);font-size:13px}.login form{margin:25px 0}.login label{display:block;font-size:12px;margin-bottom:6px;color:#536b7a}.login input{width:100%;margin-bottom:16px}.login button{width:100%;padding:12px}.login small{font-size:11px}.sidebar{width:202px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:28px 14px 20px;background:white;border-right:1px solid var(--line);z-index:5}.brand{display:flex;gap:12px;align-items:center;padding:0 9px 26px}.brand b{display:block;font-size:20px;letter-spacing:2px}.brand small{display:block;font-size:10px}.navgroup{color:#97a4ae;font-size:10px;letter-spacing:1px;margin:18px 13px 7px}.nav{display:flex;align-items:center;gap:11px;border:0;width:100%;text-align:left;background:transparent;padding:12px 13px;font-size:13px;color:#697b89;border-radius:8px;margin:2px 0}.nav.active{color:var(--teal);background:var(--tealbg);font-weight:650}.nav i{font-style:normal;width:21px;text-align:center;font-size:16px}.navfoot{margin-top:auto;padding:20px 10px 0;color:#6b8190;font-size:12px}.navfoot small{display:block;font-size:10px;margin-top:12px;color:#9ca8b2}.textbtn{border:0;background:transparent;color:var(--teal);padding:5px 0;font-size:12px}.main{margin-left:202px}.topbar{height:66px;border-bottom:1px solid var(--line);padding:0 29px;display:flex;justify-content:space-between;align-items:center;background:white;font-size:12px;color:#768894}.toptools{display:flex;gap:17px;align-items:center}.connected{color:var(--teal);font-size:11px}.connected:before{content:'●';font-size:8px;margin-right:5px}.disconnected{color:var(--red)}.pill{display:inline-flex;padding:3px 8px;border-radius:5px;background:#eff3f6;color:#6a7c8c;font-size:10px;white-space:nowrap}.pill.green{background:#e8f6f0;color:#248267}.pill.amber{background:#fff5e7;color:#a47338}.pill.red{background:#fff0ed;color:#bd6362}.smallbtn{padding:5px 10px;font-size:11px}.head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}.head p{color:var(--muted);font-size:12px;margin-top:7px}.page{padding:30px;max-width:1510px;margin:auto}.panel{border:1px solid var(--line);border-radius:13px;background:white;box-shadow:var(--shadow);overflow:hidden}.panelhead{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;gap:10px}.panelbody{padding:0 22px 22px}.notice{padding:13px 16px;color:#7792a5;border:1px solid #e1eaf2;background:#f1f6fa;font-size:12px;line-height:1.8;border-radius:8px}.notice.amber{color:#9e7d4a;border-color:#f3e6d3;background:#fffbf3}.space{height:20px}.overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.metric{padding:21px 22px;border:1px solid #244357;border-radius:13px;background:#1c3347;color:#f2f8fc;text-align:left;box-shadow:var(--shadow)}.metric:first-child{background:#173c43;border-color:#275356}.metric small{display:block;color:#a3becf;font-size:11px}.metric b{display:block;font-size:30px;font-weight:600;margin:9px 0 5px;letter-spacing:-.6px}.metric em{font-style:normal;color:#83cabc;font-size:10px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.workcard{padding:21px 23px}.workcard h3{font-size:13px;margin-bottom:24px}.workcounts{display:flex;gap:28px;align-items:center}.workcounts button{border:0;padding:0;background:transparent;text-align:left}.workcounts b{font-size:32px;display:block;line-height:1.3}.workcounts span{color:var(--muted);font-size:11px}.workcounts .done b{color:#7c999b;font-size:26px}.workcard>small{display:block;margin-top:15px;font-size:11px}.priority{padding:0 22px}.priorityrow{display:flex;align-items:center;gap:14px;border-top:1px solid var(--line);padding:17px 0}.priorityrow>div:nth-child(2){flex:1;min-width:0}.priorityrow strong{font-size:13px;font-weight:550}.priorityrow small{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar{height:37px;width:37px;border-radius:11px;background:#ebf2ee;color:#729987;display:grid;place-items:center;font-weight:600;flex:none}.avatar.b{background:#eef0f7;color:#808eaf}.avatar.c{background:#f7f0e7;color:#b0966c}.sectiontitle{font-size:14px;margin:0 0 12px}.empty{padding:55px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:2}.empty h2{color:var(--ink);margin-bottom:10px}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:15px 18px;border-bottom:1px solid #eef2f4;text-align:left;vertical-align:middle}th{font-size:11px;background:#f9fbfc;color:#8a9aa7;font-weight:500;white-space:nowrap}td small{display:block;font-size:10px}.toolbar{display:flex;gap:10px;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.toolbar input{min-width:210px}.row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.formrow{margin-bottom:17px}.formrow label{display:block;color:#6a7d8b;font-size:12px;margin-bottom:7px}.formrow input,.formrow select,.formrow textarea{width:100%}.formrow textarea{min-height:110px}.formrow small{font-size:10px;display:block;margin-top:6px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.resource{padding:21px;display:flex;flex-direction:column;gap:13px}.resource p{white-space:pre-wrap;font-size:12px;line-height:1.9;color:#657d8c;max-height:145px;overflow:auto}.resource .row{margin-top:auto}.resource small{font-size:10px}.sourcecard{padding:22px}.sourcecard h3{margin-bottom:13px}.sourceinfo{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:20px 0;font-size:12px}.sourceinfo label{display:block;font-size:10px;color:#8a9ca8}.sourcecard pre{font-size:11px;white-space:pre-wrap;background:#f7f9fa;padding:12px;border-radius:8px;overflow-wrap:anywhere}.sourcecards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.foot{margin:20px 0 0;font-size:10px;color:#99a8b2}.kanban{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.kanban>section{background:#eef2f4;border-radius:12px;padding:16px}.fix{margin:13px 0;background:white;border:1px solid var(--line);border-radius:9px;padding:16px}.fix p{font-size:12px;color:var(--muted);margin:10px 0}.fix small{font-size:10px}.fix h3{line-height:1.8}.chatpage{height:calc(100dvh - 66px);display:flex;flex-direction:column;min-height:580px}.chatbar{height:60px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#fff;border-bottom:1px solid var(--line)}.chatbar h1{font-size:19px}.chatbar small{margin-left:10px;font-size:11px}.chatlayout{display:grid;grid-template-columns:260px minmax(340px,1fr) 300px;min-height:0;flex:1;overflow:hidden}.queue{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.queuehead{padding:15px 14px 10px}.queuehead input{width:100%;font-size:11px;padding:8px 10px}.queuetabs{display:flex;gap:5px;margin-top:12px}.queuetabs button{flex:1;font-size:10px;border:0;padding:5px;color:#8b9ba6;background:#f3f6f7}.queuetabs button.active{background:var(--tealbg);color:var(--teal);font-weight:600}.queuelist{overflow:auto;flex:1}.conversationitem{display:flex;gap:11px;align-items:flex-start;width:100%;border:0;border-radius:0;border-left:3px solid transparent;padding:15px 13px;border-bottom:1px solid #f1f4f6;text-align:left;background:#fff}.conversationitem.active{border-left-color:var(--teal);background:#edf7f5}.conversationitem .avatar{width:33px;height:35px;font-size:12px;border-radius:9px}.conversationitem>div{flex:1;min-width:0}.conversationitem .name{display:flex;justify-content:space-between;gap:6px;align-items:center}.conversationitem b{font-size:12px;font-weight:600}.conversationitem small{font-size:9px;white-space:nowrap}.conversationitem p{font-size:11px;color:#7d8f9c;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:5px}.conversationitem .tags{margin-top:6px}.conversationitem .pill{font-size:9px;padding:2px 5px}.queuefoot{font-size:10px;color:var(--muted);padding:9px 14px;border-top:1px solid var(--line);display:flex;justify-content:space-between}.chatcenter{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f8fafb}.conversationheader{background:white;padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.conversationheader h2{font-size:16px}.conversationheader p{font-size:10px;color:var(--muted);margin-top:5px}.conversationheader .row{flex-wrap:nowrap}/* 按钮文字在任何宽度下都不许逐字竖排：中文没有词边界，宽度一被压缩就会被拆成一列字。 */
.conversationheader button{white-space:nowrap}.contextline{margin:14px 20px 0;padding:10px 13px;border-radius:7px;background:#edf5f3;color:#48857a;font-size:11px;line-height:1.7}.contextline b{margin-right:5px}.thread{overflow-y:auto;flex:1;padding:24px 24px 15px;min-height:130px;scroll-behavior:smooth}.msg{margin-bottom:22px;max-width:88%;width:fit-content}.msg .label{font-size:10px;color:#97a5af;margin:0 3px 6px;display:flex;gap:15px}.msg .bubble{background:white;border:1px solid #e4ebee;padding:12px 15px;border-radius:3px 12px 12px 12px;color:#4a6575;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85}.msg.staff{margin-left:auto}.msg.staff .bubble{background:#eaf6f2;border-color:#d5eae3;border-radius:12px 3px 12px 12px;color:#416e65}.msg.staff .label{justify-content:flex-end}.msg.event{width:100%;max-width:100%}.msg.event .bubble{font-size:12px;background:#f1f5f8;border-color:#e4eaf0;border-style:dashed;color:#6c8395;border-radius:9px}.msg.note{max-width:100%;width:100%}.msg.note .bubble{font-size:12px;background:#fff9ed;border:1px solid #f2e6cb;color:#a18348;border-radius:9px}.msg .delivery{font-size:9px;color:#98a8b2;text-align:right;margin-top:4px}.msg .delivery.error{color:var(--red)}.composer{background:white;border-top:1px solid var(--line);padding:13px 20px 16px;flex:none}.aitools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:11px}.aitools button{font-size:11px;padding:6px 10px;color:#6c8995}.aitools button:first-child{background:var(--tealbg);color:var(--teal);border-color:transparent;font-weight:600}.composer textarea{width:100%;border:0;padding:2px 0;min-height:76px;resize:none;outline:none;font-size:13px;line-height:1.9}.composerfooter{display:flex;justify-content:space-between;align-items:center;gap:9px}.composerfooter select{font-size:11px;border:0;padding:5px 0;background:transparent;color:#6d8391;max-width:135px}.composerfooter small{font-size:9px}.composernotice{font-size:10px;color:#a58250;margin-bottom:7px;min-height:15px}.orderpane{background:white;border-left:1px solid var(--line);overflow-y:auto;padding:23px 20px}.orderpane h3{font-size:12px;margin-bottom:14px}.producthero{display:flex;align-items:center;gap:10px;margin-bottom:18px}.producthero .avatar{width:42px;height:43px;background:#f3f0e8;color:#a7997d}.producthero b{font-size:13px}.producthero small{display:block;font-size:10px}.fact{display:flex;justify-content:space-between;gap:14px;font-size:11px;margin:12px 0;color:#657c8d}.fact>span:first-child{color:#9ba8b2;flex:none}.fact>span:last-child{text-align:right;overflow-wrap:anywhere}.orderpane .rule{height:1px;background:var(--line);margin:22px 0}.orderpane details{border-top:1px solid var(--line);padding:15px 0}.orderpane summary{font-size:12px;cursor:pointer;color:#5f798a}.orderpane .notice{font-size:10px;padding:10px 12px}.orderpane .stack{display:grid;gap:8px}.orderpane .stack button{text-align:left;font-size:11px}.factsraw{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;color:#8295a4;margin-top:10px;max-height:160px;overflow:auto}.people{font-size:11px;width:100%;margin:12px 0}.claimtip{font-size:10px;color:#99a8b1;margin:8px 0}.labelcode{font-family:monospace;font-size:10px;color:#9dacb6}.inline{display:inline}.statstrip{display:flex;flex-wrap:wrap;gap:25px;padding:16px 20px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px}.statstrip b{font-size:21px;color:var(--ink);margin:0 5px}.badgepoint{color:var(--teal)}.note-pre{white-space:pre-wrap}.align-right{text-align:right}dialog{padding:0;border:1px solid var(--line);border-radius:15px;width:min(600px,calc(100vw - 36px));max-height:90dvh;box-shadow:0 25px 90px #15374830;color:var(--ink)}dialog::backdrop{background:#173d4d45;backdrop-filter:blur(2px)}.dialoghead{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;border-bottom:1px solid var(--line)}.dialoghead h2{font-size:17px}.dialoghead button{border:0;font-size:24px;padding:0 4px;color:#8b9da9}#dialog-body{padding:23px 25px}.dialogactions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.knowledgepick{border:1px solid var(--line);border-radius:9px;padding:15px;margin-bottom:14px}.knowledgepick p{white-space:pre-wrap;color:#617b8b;font-size:12px;margin:10px 0}#toast{position:fixed;left:50%;top:12px;bottom:auto;transform:translateX(-50%);max-width:min(650px,calc(100vw - 100px));padding:10px 18px;border-radius:10px;background:#234a55;color:#fff;box-shadow:0 6px 30px #18384930;z-index:100;font-size:12px;pointer-events:none}#toast.error{background:#a55050}.rightbuttons{margin-left:auto}.joberror{color:var(--red);font-size:11px}.siteguide{line-height:2;font-size:13px;color:#5b7587}.siteguide h2{color:var(--ink);margin:22px 0 10px}.siteguide ul{padding-left:20px}.siteguide pre{font-size:12px;border-radius:7px;background:#f4f7f8;padding:15px;overflow:auto}.sourceempty{padding:25px}.busy{pointer-events:none;opacity:.7}
@media(min-width:1550px){.chatlayout{grid-template-columns:290px minmax(400px,1fr) 330px}.thread{padding:25px 35px}.composer{padding:17px 30px 20px}.composer textarea{min-height:96px}}
@media(max-width:1300px){.sidebar{width:175px;padding-left:9px;padding-right:9px}.main{margin-left:175px}.brand{gap:9px}.brand b{font-size:18px}.nav{font-size:12px;gap:9px}.chatlayout{grid-template-columns:225px minmax(320px,1fr) 255px}.orderpane{padding:19px 16px}.conversationheader{padding:16px}.composer{padding:12px 15px}.thread{padding:20px 18px}.contextline{margin-left:15px;margin-right:15px}.page{padding:25px}.overview{gap:10px}.metric{padding:18px 16px}.metric b{font-size:27px}}
@media(max-width:1100px){.chatlayout{grid-template-columns:220px minmax(340px,1fr)}.orderpane{display:none}.chatlayout.showorder .orderpane{display:block;position:fixed;right:0;top:126px;bottom:0;width:290px;box-shadow:-20px 0 50px #15374820;z-index:10}.overview{grid-template-columns:repeat(2,1fr)}.sourcecards,.grid2{grid-template-columns:1fr}.workcounts{gap:20px}.cards{gap:10px}.workcard{padding:18px}.workcounts b{font-size:27px}}
@media(max-width:740px){.sidebar{width:58px;padding:15px 5px}.brand{padding:0 5px 15px}.brand>div,.navgroup,.navfoot #who,.navfoot small,.nav span{display:none}.logomark{width:31px;height:34px;font-size:19px}.nav{justify-content:center;padding:13px 8px}.nav i{font-size:19px}.navfoot{padding:10px 0}.navfoot .textbtn{font-size:10px}.main{margin-left:58px}.topbar{height:57px;padding:0 15px}.toptools{gap:8px}#breadcrumb{font-size:10px}.toptools .smallbtn{display:none}.page{padding:21px 15px}.head h1{font-size:23px}.head p{font-size:11px}.head{gap:9px}.overview{gap:9px}.metric{padding:14px}.metric b{font-size:23px}.metric small{font-size:10px}.cards{grid-template-columns:1fr}.workcard{display:flex;align-items:center;justify-content:space-between}.workcard h3{margin:0}.workcard>small{display:none}.workcounts b,.workcounts .done b{font-size:26px}.priorityrow strong{font-size:12px}.priorityrow .avatar{display:none}.priorityrow .smallbtn{font-size:10px}.chatpage{height:calc(100dvh - 57px);min-height:510px}.chatbar{height:51px;padding:0 14px}.chatbar h1{font-size:16px}.chatbar small{display:none}.chatlayout{display:block;position:relative}.queue{height:100%;width:100%}.chatcenter{display:none;height:100%;position:absolute;inset:0}.chatlayout.selected .chatcenter{display:flex}.conversationheader .backbutton{display:block}.conversationheader{padding:10px 12px;flex-wrap:wrap;gap:8px 10px}.conversationheader .row{flex-wrap:wrap;min-width:0}.conversationheader .row:first-child{flex:1}.conversationheader .row:last-child{margin-left:auto}.conversationheader h2{font-size:15px}.conversationheader p{font-size:9px}.chatlayout.showorder .orderpane{top:108px;max-width:80vw}.composer{padding:10px 13px}.aitools{gap:5px}.aitools button{padding:5px 7px;font-size:10px}.thread{padding:17px 14px}.msg .bubble{font-size:12px}.contextline{font-size:10px}.kanban{grid-template-columns:1fr}.composerfooter small{display:none}.composernotice{font-size:9px}.formrow{margin-bottom:14px}.sourceinfo{font-size:11px}table{min-width:650px}.grid2{grid-template-columns:1fr}.navfoot .textbtn{width:100%}}
@media(min-width:741px){.backbutton{display:none}}
.queuetabs.wrap{flex-wrap:wrap}
.queuetabs.wrap button{flex:0 0 auto;padding:5px 8px;white-space:nowrap}
.aipanel{border:1px solid #d8e6e2;background:#f2faf7;border-radius:9px;padding:11px 13px;margin-bottom:11px}
.aipanel b{font-size:12px;color:#2f6b62}
.aipanel p{font-size:11px;color:#5e7f88;margin:5px 0;line-height:1.75}
.aipanel p.risk{color:#a4531f}
.knowledgepick small{display:block;margin-top:8px;font-size:10px;color:#9dacb6}
.queue .conversationitem .tags .pill{display:inline-block;margin:0 3px 3px 0}
.orderpane .factsraw b{color:#5f798a}
/* A withdrawn message stays visible to staff (it may already have been read, and the retraction itself
   is a fact worth seeing) but must never look like something the customer still stands behind. */
.msg.retracted .bubble{background:#f4f6f7;border-color:#e6ebee;border-style:dashed;color:#93a3ae;text-decoration:line-through}
.msg.retracted .label{color:#b3bfc7}
.msg.retracted .delivery{color:#a58250;text-align:left}
.orderpane .fact.active{outline:2px solid #99c9c4;background:#f4fbf9;border-radius:8px}

.desktop-shops th,.desktop-shops td{vertical-align:top;padding:18px 20px;font-size:13px;line-height:1.65}.desktop-shops td:first-child{min-width:170px;max-width:270px;overflow-wrap:anywhere}.desktop-shops small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.desktop-shops .error{color:var(--red)}.desktop-shops .row{gap:8px;flex-wrap:wrap}.desktop-shops button{white-space:nowrap}.desktop-shops td:nth-child(2){min-width:230px}.panelbody>p{line-height:1.8}.panelbody>.row small{display:block;margin-top:5px;line-height:1.7}.wrap{flex-wrap:wrap}

/* Desktop reception: shop → conversation → chat. Auxiliary work is opt-in. */
.desktop-client{--muted:#647a87;font-family:"Microsoft YaHei UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-variant-numeric:tabular-nums}
.desktop-client .sidebar{position:fixed;inset:0 0 auto;width:auto;height:64px;flex-direction:row;align-items:center;gap:26px;padding:0 24px;z-index:20;background:#fff}
.desktop-client .brand{padding:0;gap:10px;flex:none}.desktop-client .brand b{font-size:19px;letter-spacing:1px}.desktop-client .brand small{font-size:11px;color:#637984}.desktop-client .brand>div{display:block}.desktop-client .logomark{width:33px;height:35px;font-size:21px;border-radius:9px}
.desktop-client #nav{display:flex;align-items:center;gap:10px;height:100%}.desktop-client #nav>.nav{width:auto;padding:9px 17px;font-size:14px;margin:0}.desktop-client .navfoot{display:flex;align-items:center;gap:18px;padding:0;margin:0 0 0 auto;font-size:12px}.desktop-client .navfoot small{display:none}.desktop-client .navfoot #who{display:block}.desktop-client .navfoot .textbtn{width:auto;white-space:nowrap;font-size:12px}
.business-menu{position:relative;font-size:14px}.business-menu summary{list-style:none;cursor:pointer;padding:9px 14px;border-radius:7px;color:#496371;user-select:none}.business-menu summary::-webkit-details-marker{display:none}.business-menu summary:hover,.business-menu[open] summary{background:#f0f5f4;color:var(--teal)}.business-menu summary span{margin-left:15px}.business-menu-panel{position:absolute;top:47px;left:0;min-width:228px;background:#fff;border:1px solid #dbe7e6;box-shadow:0 12px 34px #214d4924;border-radius:10px;padding:9px;max-height:calc(100dvh - 82px);overflow:auto;z-index:25}.business-menu-panel .navgroup{display:block;margin:12px 12px 5px;font-size:11px;color:#73858e;letter-spacing:0}.business-menu-panel .nav{padding:9px 12px;font-size:13px}.business-menu summary:focus-visible{outline:3px solid #a6d8d0;outline-offset:2px}
.desktop-client .main{margin-left:0;padding-top:64px}.desktop-client .topbar{height:46px;padding:0 24px;background:#fbfcfc}.desktop-client #breadcrumb{font-size:12px;color:#4e6875}.desktop-client .toptools{gap:18px;font-size:12px}.desktop-client #mode{display:none}.desktop-client #stream-status{font-size:12px}.desktop-client #desktop-top-actions{display:flex;align-items:center;gap:18px}.desktop-client .toptools>.smallbtn{display:inline-block;font-size:12px}.service-status{font-size:12px;color:#617780;white-space:nowrap}.service-status::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#9baeb4;margin-right:7px}.service-status.ready::before{background:#45977c}.service-status.stopped{color:#a14e48}.service-status.stopped::before{background:#bd6960}
.desktop-client .desktop-desk{height:calc(100dvh - 110px);min-height:480px}.desktop-workspace.chatlayout{grid-template-columns:224px 312px minmax(360px,1fr);position:relative;overflow:hidden}.desktop-workspace .chatcenter{position:static;display:flex;height:auto;background:#f5f8f8}.desktop-workspace .orderpane{display:none}.desktop-workspace.showorder .orderpane{display:block;position:absolute;top:0;bottom:0;right:0;width:min(352px,calc(100% - 536px));padding:22px 24px;z-index:12;box-shadow:-10px 0 32px #2949471a;border-left:1px solid #dce6e4}.desktop-workspace.showorder .chatcenter{padding-right:0}.desktop-workspace .backbutton{display:none}.desktop-workspace .chatcenter .row{flex-wrap:wrap}
.shoprail{display:flex;flex-direction:column;min-height:0;background:#f2f6f5;border-right:1px solid #dce6e3}.shoprail-heading{display:flex;align-items:center;justify-content:space-between;padding:21px 18px 13px}.shoprail-heading h1{font-size:17px;font-weight:650;letter-spacing:0}.shoprail-heading>span{font-size:12px;color:#718680}.shoprail-tabs{display:flex;gap:2px;margin:0 12px 12px;border-bottom:1px solid #dce5e2}.shoprail-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:8px 7px;font-size:12px;color:#627b74;flex:1;white-space:nowrap}.shoprail-tabs button.active{color:#087c74;border-bottom-color:#087c74;font-weight:650}.shoprail-list{flex:1;overflow:auto;padding:0 8px 12px}.shop-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:15px 10px;margin:4px 0;border:1px solid transparent;border-radius:9px;text-align:left;background:transparent}.shop-item:hover{background:#e9f1ee;border-color:transparent}.shop-item.active{background:#fff;border-color:#cfdfd9;box-shadow:0 3px 10px #21493e05}.shop-avatar{display:grid;place-items:center;flex:none;width:36px;height:38px;background:#e2eee8;border-radius:8px;color:#387e69;font-size:16px;font-weight:600}.shop-info{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.shop-info b{font-size:13px;color:#24493d;font-weight:650;line-height:1.6;overflow-wrap:anywhere}.shop-info>span{font-size:11px;color:#71867e}.shop-info .shop-state{display:flex;align-items:center;gap:5px;font-size:11px;line-height:1.6;color:#6c7e79}.shop-state i{display:inline-block;width:6px;height:6px;flex:none;background:#8b9d95;border-radius:50%}.shop-state.green{color:#39896b}.shop-state.green i{background:#39896b}.shop-state.amber{color:#977229}.shop-state.amber i{background:#aa853e}.shop-state.red{color:#b15c52}.shop-state.red i{background:#b15c52}.shop-info .shop-error{font-size:11px;color:#a65d50;line-height:1.6;overflow-wrap:anywhere}.shoprail-empty{padding:26px 12px;color:#687f76;font-size:12px;line-height:1.9}.shoprail-footer{padding:15px 16px;border-top:1px solid #dce5e2;display:flex;flex-direction:column;gap:8px;align-items:stretch}.shoprail-footer .shop-add{border:1px dashed #b9cec5;background:transparent;color:#377c67;font-size:13px}.shoprail-footer small{font-size:10px;line-height:1.6;text-align:center;color:#7c8e87}.shoprail-footer .textbtn{font-size:12px;align-self:center}
.shop-conversations{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff;border-right:1px solid var(--line)}.shop-conversations-heading{padding:19px 18px 12px;display:flex;flex-direction:column;gap:3px}.shop-conversations-heading h2{font-size:16px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}.shop-conversations-heading>span{font-size:11px;color:#7a8d96}.shop-connection{background:#f7f9f8;border-top:1px solid #e7eeeb;border-bottom:1px solid #e7eeeb;padding:12px 17px;font-size:11px;line-height:1.7}.shop-connection>div:first-child{display:flex;flex-direction:column;gap:3px}.shop-connection strong{font-size:12px;font-weight:550;color:#4c7163}.shop-connection span{color:#72867e;overflow-wrap:anywhere}.shop-connection .row{margin-top:8px;gap:12px}.shop-connection .smallbtn{font-size:11px;background:#fff;padding:4px 9px}.shop-connection .textbtn{font-size:11px}.shop-connection.red{background:#fff6f2;border-color:#f2e3da}.shop-connection.red strong,.shop-connection.red span{color:#a15e4c}.shop-connection.amber{background:#fffcf4;border-color:#f2ead6}.shop-connection.amber strong{color:#947331}.shop-conversations .queue{flex:1;border:0;min-height:0}.shop-conversations .queuehead{padding:14px 14px 11px}.shop-conversations .queuehead input{font-size:12px;padding:9px 11px;background:#f7f9fa;border-color:#e1e8eb}.shop-conversations .queuetabs{gap:5px;margin-top:11px}.shop-conversations .queuetabs button{font-size:11px;padding:5px 7px;line-height:1.6;border-radius:4px}.shop-conversations .conversationitem{padding:15px 13px;gap:10px}.shop-conversations .conversationitem .name{align-items:flex-start}.shop-conversations .conversationitem b{font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}.shop-conversations .conversationitem small{font-size:10px;padding-top:2px;color:#81919b}.shop-conversations .conversationitem p{font-size:12px;line-height:1.6}.shop-conversations .conversationitem .tags{display:flex;flex-wrap:wrap;gap:4px}.shop-conversations .conversationitem .tags .pill{font-size:10px;line-height:1.5;margin:0;padding:2px 5px}.shop-conversations .queuefoot{font-size:11px;align-items:center}.shop-conversations .empty{font-size:12px;line-height:1.9;padding:34px 18px}.shop-conversations .empty h2{font-size:14px}
.desktop-workspace .conversationheader{padding:18px 24px;min-height:82px;align-items:flex-start;gap:14px}.desktop-workspace .conversationheader h2{font-size:18px;line-height:1.5}.desktop-workspace .conversationheader p{font-size:12px;line-height:1.7;color:#71858e}.desktop-workspace .conversationheader>.row:first-child{min-width:0;flex:1}.desktop-workspace .conversationheader .smallbtn{font-size:12px;padding:6px 10px}.desktop-workspace .conversationheader .pill{font-size:11px;padding:5px 8px}.desktop-workspace .contextline{font-size:11px;color:#557e70;line-height:1.8;padding:10px 14px;margin:16px 24px 0;background:#eaf2ee}.desktop-workspace .thread{padding:26px 28px 18px;min-height:95px}.desktop-workspace .msg{max-width:82%;margin-bottom:23px}.desktop-workspace .msg .label{font-size:11px;color:#7a8f98}.desktop-workspace .msg .bubble{font-size:14px;line-height:1.8;padding:12px 16px}.desktop-workspace .msg.note,.desktop-workspace .msg.event{max-width:100%}.desktop-workspace .composer{padding:15px 23px 18px}.desktop-workspace .aitools{gap:7px;margin-bottom:10px}.desktop-workspace .aitools button{font-size:12px;padding:6px 9px}.desktop-workspace .composernotice{font-size:12px;color:#9a773f;line-height:1.8}.desktop-workspace .composer textarea{font-size:14px;min-height:84px;line-height:1.8}.desktop-workspace .composerfooter select{font-size:12px;max-width:180px}.desktop-workspace .composerfooter small{font-size:11px}.desktop-workspace .composerfooter button{font-size:12px}.desktop-workspace .composerfooter button.primary{min-width:94px}.desktop-workspace .composerfooter button:disabled{opacity:1;background:#e8edec;border-color:#e2e9e6;color:#87958f}.desktop-workspace .orderpane h3{font-size:13px}.desktop-workspace .orderpane .fact,.desktop-workspace .orderpane .notice,.desktop-workspace .orderpane .stack button{font-size:12px}.desktop-workspace .orderpane .labelcode{font-size:11px}.desktop-workspace .orderpane summary{font-size:12px}
.desktop-workspace .workspace-empty{align-items:center;justify-content:center;padding:48px;text-align:center;gap:16px}.workspace-empty h2{font-size:21px;line-height:1.6;font-weight:600;max-width:560px;overflow-wrap:anywhere}.workspace-empty p{font-size:13px;line-height:2;color:#748991;max-width:440px}.workspace-empty small{font-size:11px;line-height:1.8;color:#8b9b9e;max-width:440px}.empty-symbol{width:62px;height:66px;display:grid;place-items:center;background:#e2eeea;border-radius:17px;color:#83a699;font-size:28px;margin-bottom:5px}.workspace-empty>.row{justify-content:center}.workspace-error{padding:11px 20px;line-height:1.8;background:#fff3e8;color:#975f36;font-size:12px;border-bottom:1px solid #ead3bf;flex:none}.workspace-error[hidden]{display:none}.add-shop-intro{font-size:14px;line-height:1.8;color:#4d6e76;margin-bottom:20px}#desktop-add-error{font-size:12px;line-height:1.8;margin-top:12px}
.desktop-client button{transition:background-color .16s ease,border-color .16s ease,color .16s ease}.desktop-client button:active:not(:disabled){transform:translateY(1px)}
@media(max-width:1400px){.desktop-workspace.chatlayout{grid-template-columns:212px 292px minmax(360px,1fr)}.desktop-workspace.showorder .orderpane{width:min(336px,calc(100% - 504px))}.desktop-workspace .conversationheader{padding:17px 20px;flex-wrap:wrap}.desktop-workspace .conversationheader>.row:last-child{margin-left:auto}.desktop-workspace .contextline{margin-left:20px;margin-right:20px}.desktop-workspace .thread{padding-left:23px;padding-right:23px}.desktop-workspace .composer{padding-left:20px;padding-right:20px}}
@media(max-width:1120px){.desktop-client .sidebar{padding:0 18px;gap:18px}.desktop-client .navfoot{gap:12px}.desktop-client .topbar{padding:0 18px}.desktop-client .toptools{gap:12px}.desktop-workspace.chatlayout{grid-template-columns:190px 268px minmax(340px,1fr)}.shoprail-heading{padding-left:15px;padding-right:15px}.shop-item{padding:12px 7px;gap:7px}.shop-avatar{width:31px;height:33px;font-size:14px}.shoprail-tabs{margin-left:8px;margin-right:8px}.shoprail-tabs button{font-size:11px;padding-left:3px;padding-right:3px}.shop-conversations-heading{padding-left:15px;padding-right:15px}.shop-connection{padding:10px 14px}.desktop-workspace.showorder .orderpane{width:min(324px,calc(100% - 458px))}.desktop-workspace .workspace-empty{padding:30px}.desktop-workspace .conversationheader{padding:15px 18px}.desktop-workspace .conversationheader h2{font-size:17px}.desktop-workspace .composer{padding:12px 16px}.desktop-workspace .composer textarea{min-height:76px}.desktop-workspace .aitools button{font-size:11px}.desktop-workspace .contextline{margin:12px 16px 0}}
@media(prefers-reduced-motion:reduce){.desktop-client button{transition:none}.desktop-client .thread{scroll-behavior:auto}}
.desktop-client .topbar{display:none}.desktop-client .sidebar{gap:24px}.desktop-client .navfoot{margin-left:0}.desktop-client .desktop-desk{height:100dvh}.shoprail-footer{gap:0}.queue-empty{font-size:12px;color:#778d95;line-height:1.9;padding:28px 20px}.desktop-client #desktop-conversation-filter{font-size:11px;padding:5px 3px;border:0;background:#f3f6f7;max-width:102px;color:#6b8089}.desktop-client #desktop-conversation-filter:has(option:checked:not([value=""])){color:var(--teal);background:var(--tealbg)}
@media(max-width:1120px){.desktop-client .sidebar{gap:14px}.desktop-client #desktop-top-actions{gap:12px}.desktop-client .navfoot #who{display:none}.desktop-client #stream-status{font-size:11px}.desktop-client .brand b{font-size:18px}.desktop-client #nav>.nav{padding-left:11px;padding-right:11px}.business-menu summary{padding-left:8px;padding-right:8px}}
.desktop-workspace.showorder .chatcenter{margin-right:352px}.desktop-workspace.showorder .conversationheader{flex-wrap:wrap}.desktop-workspace.showorder .composerfooter{flex-wrap:wrap}.desktop-workspace.showorder .composerfooter>.row:last-child{margin-left:auto}.desktop-workspace.showorder .orderpane::before{content:"客户资料";display:block;font-size:15px;font-weight:600;margin-bottom:20px;color:#315c4e}
@media(max-width:1400px){.desktop-workspace.showorder .chatcenter{margin-right:336px}}
@media(max-width:1120px){.desktop-workspace.showorder .chatcenter{margin-right:300px}.desktop-workspace.showorder .orderpane{width:300px}.desktop-workspace.showorder .composerfooter>.row{width:100%}.desktop-workspace.showorder .composerfooter>.row:last-child{justify-content:flex-end}.desktop-workspace.showorder .composerfooter small{display:block}}

/* Role workspaces: calm white/grey surfaces with a restrained deep-sea blue action color. */
.role-page{max-width:1440px;margin:0 auto;padding:28px 34px 44px;background:#f7f8fa;color:#252b33;min-height:100%}.role-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:14px}.role-heading h1{font-size:24px;font-weight:600;margin:7px 0}.role-heading p,.role-coverage{color:#626d79;font-size:13px;line-height:1.7;margin:0}.role-filter{display:flex;align-items:center;gap:10px;color:#626d79;font-size:13px}.role-filter select{height:36px;min-width:190px;border:1px solid #e4e8ed;border-radius:7px;background:#fff;color:#252b33;padding:0 10px}.role-coverage{padding:10px 12px;margin:14px 0 18px;background:#fff;border:1px solid #e4e8ed;border-radius:8px}.role-section{background:#fff;border:1px solid #e4e8ed;border-radius:10px;margin-top:16px;overflow:hidden}.role-section-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e4e8ed}.role-section-heading h2{font-size:16px;font-weight:600;margin:0}.role-section-heading span{font-size:12px;color:#626d79}.role-source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;padding:16px}.role-source{border:1px solid #e4e8ed;border-radius:8px;padding:14px}.role-source>div{display:flex;justify-content:space-between;gap:10px;align-items:center}.role-source b{font-size:14px}.role-mode{color:#626d79;font-size:11px}.role-source dl{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:14px 0 0}.role-source dl div{border-left:2px solid #edf2f6;padding-left:9px}.role-source dt{font-size:11px;color:#626d79}.role-source dd{font-size:18px;font-weight:600;margin:3px 0 0}.role-table-wrap{width:100%;overflow:auto}.role-table{width:100%;border-collapse:collapse;font-size:13px}.role-table th,.role-table td{padding:12px 16px;border-bottom:1px solid #edf0f3;text-align:left;vertical-align:middle;white-space:nowrap}.role-table th{background:#fafbfc;color:#626d79;font-weight:500;font-size:12px}.role-table tbody tr:last-child td{border-bottom:0}.role-table td strong{font-weight:600}.role-actions{display:flex;gap:6px;justify-content:flex-end}.role-table .smallbtn,.role-filter-banner .smallbtn{border-color:#d6e0e8;color:#315f87;background:#fff}.role-table .smallbtn:hover,.role-filter-banner .smallbtn:hover{background:#edf2f6}.issue-status{color:#a34d3e;font-weight:600}.role-empty{padding:22px 20px;color:#626d79;font-size:13px}.role-error{max-width:720px;margin:64px auto;padding:24px;background:#fff;border:1px solid #e4e8ed;border-radius:10px}.role-error h1{font-size:20px}.role-error p{color:#626d79;line-height:1.8}.role-filter-banner{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#edf2f6;border-bottom:1px solid #e4e8ed;color:#315f87;font-size:12px}.role-filter-banner span{margin-right:auto}.desktop-workspace.chatlayout{grid-template-columns:minmax(270px,300px) minmax(360px,1fr);background:#f7f8fa}.desktop-workspace .shop-conversations{display:flex;flex-direction:column;min-width:0;background:#fff;border-right:1px solid #e4e8ed}.desktop-workspace .shoprail.shop-selector-row{display:flex;align-items:center;gap:8px;padding:11px 14px;border-bottom:1px solid #e4e8ed}.shop-selector-row label{font-size:12px;color:#626d79;white-space:nowrap}.shop-selector-row select{height:34px;min-width:0;flex:1;border:1px solid #e4e8ed;border-radius:6px;background:#fff;color:#252b33;padding:0 8px;font-size:13px}.desktop-workspace .shop-conversations-heading{padding:14px 16px 10px;border:0}.desktop-workspace .shop-conversations-heading h2{font-size:17px;font-weight:600;color:#252b33}.desktop-workspace .shop-connection{margin:0 12px 10px;border:1px solid #e4e8ed;border-radius:7px;background:#fafbfc;color:#626d79}.desktop-workspace .queue{flex:1;min-height:0}.desktop-workspace .queuehead{background:#fff;padding:8px 12px}.desktop-workspace .queuehead input{height:34px;border:1px solid #e4e8ed;border-radius:6px}.desktop-workspace .queuelist{background:#fff}.desktop-workspace .conversationitem.active{background:#edf2f6;border-color:#d8e2ea}.desktop-workspace .conversationitem .name b{color:#252b33}.desktop-workspace .chatcenter{background:#fff}.desktop-workspace .contextline{background:#f7f8fa;color:#626d79;border:1px solid #e4e8ed;border-radius:7px}.desktop-workspace .composer{border-top:1px solid #e4e8ed;background:#fff}.desktop-workspace .composer button.primary,.desktop-client button.primary{background:#315f87;border-color:#315f87}.desktop-client .sidebar{background:#fff;border-right:1px solid #e4e8ed}.desktop-client .nav.active{background:#edf2f6;color:#315f87}.desktop-client .business-menu summary{color:#626d79}.desktop-client #desktop-top-actions{display:flex;align-items:center;gap:12px}.desktop-client .toptools #desktop-top-actions{margin-left:auto}.service-status{color:#626d79}
@media(max-width:1280px){.role-page{padding:22px 20px}.desktop-workspace.chatlayout{grid-template-columns:270px minmax(340px,1fr)}.desktop-workspace.showorder .chatcenter{margin-right:300px}.desktop-workspace.showorder .orderpane{width:300px}.role-table th,.role-table td{padding:10px 12px}}
@media(max-width:900px){.role-heading{align-items:flex-start;flex-direction:column}.role-filter{width:100%}.role-filter select{flex:1}.desktop-workspace.chatlayout{grid-template-columns:1fr}.desktop-workspace .shop-conversations{border:0}.desktop-workspace:not(.selected) .chatcenter{display:none}.desktop-workspace.selected .shop-conversations{display:none}.desktop-workspace.selected .chatcenter{display:flex}.desktop-workspace.showorder .chatcenter{margin-right:0}.desktop-workspace.showorder .orderpane{width:min(320px,100%)}.role-table th,.role-table td{white-space:normal}}
.desktop-workspace .shoprail.shop-selector-row{display:flex;flex-direction:row;align-items:center;gap:8px;padding:8px 12px;min-height:46px;background:#fff;border:0}
.desktop-workspace .shop-selector-row label{flex:0 0 auto;width:auto;margin:0;color:#626d79;font-size:12px}
.desktop-workspace #desktop-shop-select{flex:1;min-width:0;height:32px;padding:0 9px;border:1px solid #e4e8ed;border-radius:6px;background:#fff;color:#252b33}
.desktop-workspace .shop-connection:not(.red):not(.amber){display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:5px 12px}
.desktop-workspace .shop-connection-main{display:flex;align-items:center;gap:8px;min-width:0}
.desktop-workspace .shop-connection-main strong{white-space:nowrap}
.desktop-workspace .shop-connection-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desktop-workspace .shop-platform-actions{position:relative;flex:0 0 auto}
.desktop-workspace .shop-platform-actions summary{cursor:pointer;color:#315f87;font-size:12px;white-space:nowrap}
.desktop-workspace .shop-platform-actions[open]{position:absolute;z-index:5;right:12px;padding:10px 12px;border:1px solid #e4e8ed;border-radius:7px;background:#fff;box-shadow:0 8px 24px #1d2b3814}
.desktop-workspace .shop-platform-actions>span{display:block;max-width:260px;margin:0 0 8px;color:#626d79}
.desktop-workspace .shop-platform-actions .row{display:flex;gap:6px}
.role-read-only{color:#626d79;font-size:13px;line-height:1.65}
:root{--ink:#252b33;--muted:#626d79;--line:#e4e8ed;--bg:#f7f8fa;--teal:#315f87;--tealbg:#edf2f6;--shadow:0 5px 22px #1d2b3808}body{font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#252b33;background:#f7f8fa}button{color:#252b33}button:hover{border-color:#bdcbd6;background:#f5f7f9}button.primary,.primary{background:#315f87;border-color:#315f87}button.primary:hover{background:#284e70}.nav.active{color:#315f87;background:#edf2f6}.navgroup{font-size:12px;color:#626d79}.eyebrow,.textbtn,a,.connected{color:#315f87}.secondary{background:#edf2f6;color:#315f87}.smallbtn{font-size:12px}.pill{font-size:12px}.desktop-workspace .msg .label,.msg .label{font-size:12px;color:#626d79}.desktop-workspace .msg .bubble,.msg .bubble{font-size:15px;line-height:1.75}.msg.staff .bubble{background:#edf2f6;color:#252b33}.msg.customer .bubble{background:#f7f8fa;color:#252b33}.desktop-workspace .composer textarea{font-size:15px}.desktop-workspace .composerfooter small,.desktop-workspace .aitools button{font-size:12px}.desktop-workspace .conversationitem .name small,.desktop-workspace .conversationitem p,.desktop-workspace .pill{font-size:12px}.desktop-workspace.showorder .chatcenter{margin-right:352px}.desktop-workspace.showorder .orderpane{width:352px;box-shadow:-8px 0 24px #1d2b3810;border-left-color:#e4e8ed}.desktop-workspace .shoprail{background:#fff;border-right:0}.desktop-workspace .shop-connection{font-size:12px}.desktop-workspace .shop-connection span{font-size:12px}.desktop-client .sidebar .brand small,.desktop-client .navfoot small{font-size:12px}
@media(max-width:1280px){.desktop-workspace.showorder .chatcenter{margin-right:300px}.desktop-workspace.showorder .orderpane{width:300px}}

/* Approved role workspace visual system: charcoal rail, warm neutral canvas, cobalt actions. */
.desktop-client{--ink:#20252b;--muted:#606b75;--line:#e4e6e8;--bg:#f7f7f4;--teal:#3568e8;--tealbg:#edf2ff;--shadow:0 2px 10px #20252b08;background:#f7f7f4;color:#20252b;font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:14px}
.desktop-client button:hover{border-color:#b9c9f5;background:#f5f7ff}.desktop-client button.primary,.desktop-client .primary{background:#3568e8;border-color:#3568e8;color:#fff}.desktop-client button.primary:hover{background:#2b59cc}.desktop-client .nav.active,.desktop-client .queuetabs button.active{color:#3568e8;background:#edf2ff}.desktop-client .eyebrow,.desktop-client .textbtn,.desktop-client a,.desktop-client .connected,.desktop-client .secondary{color:#3568e8}
.desktop-client .sidebar{width:76px;padding:14px 7px 12px;background:#202629;border:0;color:#f7f7f4;gap:12px;align-items:stretch}.desktop-client .main{margin-left:76px}.desktop-client .brand{justify-content:center;padding:0 0 8px}.desktop-client .brand .logomark{width:42px;height:42px;border-radius:10px;background:transparent;color:#f26f65;font-size:25px}.desktop-client .brand>div:not(:first-child){display:none}.desktop-client #nav{display:flex;flex-direction:column;gap:5px}.desktop-client #nav>.nav,.desktop-client .business-menu>summary{width:62px;min-height:58px;margin:0;padding:7px 3px;border:0;border-radius:8px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;text-align:center;color:#e3e8e9;background:transparent;font-size:11px;line-height:1.25}.desktop-client #nav>.nav:hover,.desktop-client .business-menu>summary:hover{background:#2d3539;color:#fff}.desktop-client #nav>.nav.active{background:#3568e8;color:#fff}.desktop-client .nav-icon{font-size:20px;line-height:1.2}.desktop-client .nav-label{font-size:11px;white-space:nowrap}.desktop-client .business-menu{position:relative}.desktop-client .business-menu>summary{list-style:none;cursor:pointer}.desktop-client .business-menu>summary::-webkit-details-marker{display:none}.desktop-client .business-menu-panel{position:fixed;left:82px;top:180px;z-index:20;width:250px;max-height:calc(100dvh - 200px);overflow:auto;padding:10px;background:#fff;border:1px solid #e4e6e8;border-radius:9px;box-shadow:0 8px 24px #20252b20}.desktop-client .business-menu-panel .navgroup{margin:10px 8px 4px;color:#606b75;font-size:11px}.desktop-client .business-menu-panel .nav{width:100%;min-height:36px;flex-direction:row;justify-content:flex-start;gap:9px;padding:7px 9px;color:#20252b;text-align:left;font-size:13px}.desktop-client .business-menu-panel .nav-icon{width:14px;font-size:14px}.desktop-client .business-menu-panel .nav-label{font-size:13px}.desktop-client .navfoot{padding:8px 0 0;margin:0;display:flex;flex-direction:column;align-items:center;gap:7px;color:#f7f7f4}.desktop-client .navfoot #who{max-width:62px;overflow:hidden;color:#f7f7f4}.desktop-client .navfoot .textbtn{width:62px;color:#e3e8e9}.desktop-client .navfoot small{display:none}.desktop-client #desktop-service-status{font-size:12px}.desktop-client .toptools #mode,.desktop-client .toptools #stream-status{font-size:11px}
.desktop-client .desktop-desk{height:100dvh;min-height:640px}.desktop-workspace.chatlayout{grid-template-columns:minmax(276px,296px) minmax(0,1fr);background:#f7f7f4}.desktop-workspace.chatlayout.selected.showorder{grid-template-columns:minmax(276px,296px) minmax(400px,1fr) minmax(270px,300px)}.desktop-workspace.showorder .chatcenter{margin-right:0}.desktop-workspace.showorder .orderpane{position:relative;right:auto;top:auto;bottom:auto;width:auto;max-height:none;border-left:1px solid #e4e6e8;box-shadow:none;padding:18px 16px}.desktop-workspace.showorder .orderpane::before{content:none}.desktop-workspace .shop-conversations{background:#fff}.desktop-workspace .shop-conversations-heading{padding:14px 16px 8px}.desktop-workspace .shop-conversations-heading h2{font-size:21px}.desktop-workspace .shop-conversations-heading span{display:none}.desktop-workspace .shop-connection:not(.red):not(.amber){margin-bottom:7px;background:transparent;border-color:transparent}.desktop-workspace .queuehead{padding:8px 12px}.desktop-workspace .queuetabs{gap:4px;margin-top:8px}.desktop-workspace .queuetabs button{font-size:12px;background:transparent;border-bottom:2px solid transparent;border-radius:0;padding:6px 4px;color:#606b75}.desktop-workspace .queuetabs button.active{background:transparent;border-bottom-color:#3568e8;color:#3568e8}.desktop-workspace .conversationitem{gap:10px;padding:12px;border-left:3px solid transparent}.desktop-workspace .conversationitem.active{background:#edf2ff;border-left-color:#3568e8;border-color:#dce5ff}.desktop-workspace .conversationitem .avatar{height:40px;width:40px;border-radius:50%;background:#e8edf8;color:#41577c;font-size:15px}.avatar-wrap{position:relative;display:inline-flex;flex:none}.unread-badge{position:absolute;top:-5px;right:-7px;min-width:18px;height:18px;padding:0 5px;border:2px solid #fff;border-radius:10px;background:#e55353;color:#fff;font-size:10px;font-weight:700;line-height:14px;text-align:center;white-space:nowrap}.desktop-workspace .conversationitem .name b{font-size:14px}.desktop-workspace .conversationitem .name small,.desktop-workspace .conversationitem p{font-size:12px}.desktop-workspace .conversationitem .tags{margin-top:5px}.desktop-workspace .conversationitem .tags .pill{font-size:10px}.desktop-workspace .chatcenter{background:#fff}.desktop-workspace .conversationheader{min-height:72px;padding:12px 18px}.desktop-workspace .conversationheader h2{font-size:18px}.desktop-workspace .conversationheader p{font-size:12px}.desktop-workspace .contextline{margin:8px 14px 0;padding:7px 10px;background:#fafaf8;color:#606b75;border-color:#e4e6e8;font-size:12px}.desktop-workspace .thread{padding:20px 24px 14px;scroll-behavior:auto}.desktop-workspace .msg{margin-bottom:14px}.desktop-workspace .msg .label{font-size:12px}.desktop-workspace .msg .bubble{font-size:15px;line-height:1.7;padding:10px 13px}.desktop-workspace .msg.event{margin:5px auto 12px;max-width:max-content;text-align:center}.desktop-workspace .msg.event .label{display:none}.desktop-workspace .msg.event .bubble{padding:3px 10px;border:0;background:transparent;color:#7b8389;font-size:12px}.desktop-workspace .composer{padding:10px 14px 12px}.desktop-workspace .aitools{margin-bottom:7px;gap:6px}.desktop-workspace .aitools button{font-size:12px}.desktop-workspace .composer textarea{min-height:66px;font-size:15px}.desktop-workspace .composerfooter small{font-size:12px}.desktop-workspace .composerfooter button.primary{height:38px;min-width:88px}.desktop-workspace .orderpane h3{font-size:14px}.desktop-workspace .orderpane .fact,.desktop-workspace .orderpane .notice,.desktop-workspace .orderpane .stack button{font-size:12px}
.desktop-workspace .showorder-toggle{white-space:nowrap}.desktop-workspace .conversationheader button[data-action="cv-toggle-side"]{font-size:12px}.desktop-client .role-page{padding:24px 26px 40px;background:#f7f7f4}.desktop-client .role-heading h1{font-size:26px}.desktop-client .role-coverage{background:transparent;border:0;border-radius:0;padding:5px 0;color:#606b75}.desktop-client .role-section{border-color:#e4e6e8;border-radius:8px;box-shadow:none}.desktop-client .role-section-heading{padding:13px 16px}.desktop-client .role-table th{background:#f8f8f6}.desktop-client .role-table .smallbtn,.desktop-client .role-filter-banner .smallbtn{color:#3568e8;border-color:#d5def6}.desktop-client .role-filter-banner{background:#edf2ff;color:#3159bc}
.desktop-workspace .conversationitem .avatar-wrap{align-self:flex-start}.desktop-workspace .conversationitem .name b{font-size:15px}.desktop-workspace .conversationitem p{font-size:13px}.desktop-workspace .conversationitem .queue-meta{display:flex;align-items:center;gap:8px;margin-top:6px;min-width:0;font-size:12px;color:#606b75}.desktop-workspace .conversationitem .queue-meta>span:not(.pill){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-workspace .conversationitem .queue-meta .pill{font-size:12px;padding:1px 6px}.unread-badge{font-size:11px;line-height:14px}.desktop-workspace .composer textarea{border:1px solid #e4e6e8;border-radius:6px;padding:9px 10px;margin:2px 0 8px;min-height:70px}.desktop-workspace .composer textarea:focus{border-color:#8da9f4;outline:2px solid #edf2ff;outline-offset:0}.desktop-workspace .contextline{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.desktop-workspace .contextline details{position:relative;font-size:12px}.desktop-workspace .contextline details summary{cursor:pointer;color:#3568e8}.desktop-workspace .contextline details p{max-width:420px;color:#606b75;padding:6px 0}.desktop-workspace .context-alert{color:#a13e38;font-size:12px;font-weight:500}
.desktop-client .supervision-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,30%);gap:14px;align-items:stretch}.desktop-client .team-table-section{margin-top:0;min-width:0}.desktop-client .team-member-select{border:0;background:transparent;padding:0;color:#20252b;text-align:left}.desktop-client .team-member-select:hover{background:transparent;color:#3568e8}.desktop-client .role-table tbody tr.selected{background:#edf2ff}.desktop-client .team-member-pane{min-width:0;background:#fff;border:1px solid #e4e6e8;border-radius:8px;padding:18px 16px}.desktop-client .team-member-pane h2{font-size:18px;margin:5px 0}.desktop-client .team-member-pane>p{font-size:13px;color:#606b75;line-height:1.7}.desktop-client .team-source-list{margin:16px 0}.desktop-client .team-source-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid #eceeed;font-size:13px}.desktop-client .team-source-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-client .team-pane-note{padding-top:12px;border-top:1px solid #eceeed;font-size:12px!important}.desktop-client .role-section+.role-section{margin-top:14px}
.desktop-client .nav-icon svg{display:block;width:24px;height:24px}.desktop-client .desktop-workspace .queue-meta .pill,.desktop-client .unread-badge{font-variant-numeric:tabular-nums}.desktop-client .team-member-pane{display:flex;flex-direction:column;min-height:0}.desktop-client .team-pane-heading{margin-bottom:10px}.desktop-client .team-pane-heading h2{font-size:17px}.desktop-client .team-pane-heading p{font-size:13px;color:#606b75;margin-top:3px}.desktop-client .team-conversation-list{overflow:auto;min-height:120px}.desktop-client .team-conversation{display:flex;width:100%;align-items:flex-start;gap:8px;padding:10px 0;border:0;border-top:1px solid #eceeed;border-radius:0;text-align:left;background:transparent}.desktop-client .team-conversation:hover{background:#fafaf8}.desktop-client .team-conversation .avatar{width:34px;height:34px;border-radius:50%;font-size:13px}.desktop-client .team-conversation-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.desktop-client .team-conversation-copy strong{font-size:14px;font-weight:600}.desktop-client .team-conversation-copy small,.desktop-client .team-conversation time{font-size:12px;color:#606b75}.desktop-client .team-conversation-copy>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#353b41}.desktop-client .team-conversation time{white-space:nowrap}.desktop-client .team-conversation-empty{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:20px 0;color:#606b75;font-size:13px}.desktop-client .team-pane-actions{display:flex;flex-wrap:wrap;gap:6px;padding-top:10px;border-top:1px solid #eceeed}.desktop-client .team-pane-actions .smallbtn{font-size:12px}
@media(max-width:1280px){.desktop-workspace.chatlayout{grid-template-columns:minmax(264px,284px) minmax(0,1fr)}.desktop-workspace.chatlayout.selected.showorder{grid-template-columns:minmax(264px,284px) minmax(380px,1fr) 264px}.desktop-workspace.showorder .chatcenter{margin-right:0}.desktop-workspace.showorder .orderpane{width:auto}.desktop-workspace.showorder .composerfooter{flex-wrap:nowrap}.desktop-workspace.showorder .composerfooter>.row{width:auto}.desktop-workspace .conversationheader{padding:10px 14px}.desktop-workspace .thread{padding-left:18px;padding-right:18px}}
@media(max-width:1040px){.desktop-workspace.chatlayout.selected.showorder{grid-template-columns:minmax(250px,270px) minmax(340px,1fr)}.desktop-workspace.chatlayout.selected.showorder .orderpane{position:absolute;z-index:4;right:0;top:74px;bottom:0;width:min(300px,42vw);box-shadow:-8px 0 24px #20252b18}.desktop-workspace.chatlayout.selected.showorder .chatcenter{margin-right:300px}}
@media(max-width:900px){.desktop-client .sidebar{width:62px}.desktop-client .main{margin-left:62px}.desktop-workspace.chatlayout,.desktop-workspace.chatlayout.selected.showorder{grid-template-columns:1fr}.desktop-workspace.selected .shop-conversations{display:none}.desktop-workspace.selected .chatcenter{display:flex}.desktop-workspace.chatlayout.selected.showorder{grid-template-rows:minmax(300px,1fr) auto}.desktop-workspace.chatlayout.selected.showorder .chatcenter{grid-row:1;margin-right:0}.desktop-workspace.chatlayout.selected.showorder .orderpane{position:relative;grid-row:2;top:auto;right:auto;bottom:auto;width:auto;max-height:34vh;box-shadow:none}}
@media(max-width:1000px){.desktop-client .supervision-layout{grid-template-columns:1fr}.desktop-client .team-member-pane{order:2}.desktop-client .role-page{padding:18px 14px 28px}}
.desktop-client .sidebar{position:fixed;left:0;top:0;bottom:0;width:76px;min-width:76px;max-width:76px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:12px 7px;background:#202629;gap:8px;overflow:visible}.desktop-client .sidebar>.brand{width:62px;min-width:62px;max-width:62px;flex:none;margin:0;display:flex;justify-content:center;align-items:center;padding:0 0 8px}.desktop-client .sidebar>#nav{width:62px;min-width:62px;max-width:62px;flex:none;margin:0;display:flex;flex-direction:column;align-items:stretch;gap:5px}.desktop-client .sidebar>#nav>.nav,.desktop-client .sidebar>#nav>.business-menu{position:relative;left:auto;right:auto;flex:none;width:62px;min-width:62px;max-width:62px;margin:0}.desktop-client .sidebar>#nav>.business-menu>summary{width:62px;min-width:62px;max-width:62px}.desktop-client .sidebar .nav-icon{width:24px;height:24px;display:grid;place-items:center}.desktop-client .sidebar .nav-label{display:block;color:inherit;font-size:11px;line-height:1.25}.desktop-client .sidebar .navfoot{width:62px;min-width:62px;max-width:62px;flex:none;margin-top:auto;align-items:center}.desktop-client .sidebar .navfoot #who,.desktop-client .sidebar .navfoot .textbtn{color:#f1f2f2;font-size:12px}.desktop-client .chatpage.desktop-desk{height:100dvh;min-height:0;overflow:hidden}.desktop-client .desktop-workspace{height:100%;min-height:0}.desktop-client .desktop-workspace.chatlayout{height:100%;min-height:0}.desktop-client .desktop-workspace .chatcenter{min-height:0;overflow:hidden}.desktop-client .desktop-workspace .composer{padding-bottom:max(12px,env(safe-area-inset-bottom))}.desktop-client .role-coverage{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:13px}.desktop-client .role-coverage details{position:relative}.desktop-client .role-coverage summary{cursor:pointer;color:#3568e8;font-size:13px}.desktop-client .role-coverage p{max-width:700px;padding:6px 0;font-size:13px;line-height:1.6}.desktop-client .supervision-layout{grid-template-columns:minmax(0,1fr) minmax(300px,31%);align-items:start}.desktop-client .team-table-section{align-self:start}.desktop-client .team-member-pane{align-self:start;max-height:min(620px,calc(100dvh - 270px));overflow:hidden}.desktop-client .team-conversation-list{max-height:430px}.desktop-client .role-page{color:#20252b}.desktop-client .role-page p,.desktop-client .role-page span,.desktop-client .role-page td,.desktop-client .role-page th,.desktop-client .role-page summary{color:#424a52}.desktop-client .role-page .eyebrow,.desktop-client .role-page .role-actions button,.desktop-client .role-page .role-coverage summary{color:#3568e8}.desktop-client .role-page .role-table{font-size:14px}.desktop-client .role-page .role-table th{font-size:13px}.desktop-client .role-page .role-table td{font-size:14px}.desktop-client .role-page .team-conversation time,.desktop-client .role-page .team-conversation-copy small{font-size:12px;color:#606b75}
.desktop-workspace.showorder .orderpane{display:block}
/* Reception workspace v2: compact queue, business-first context and one reply surface. */
.desktop-client{--ink:#20252b;--muted:#606b75;--line:#e4e6e8;--canvas:#f7f7f4;--blue:#3568e8;--blue-soft:#edf2ff}
.desktop-client .main{padding-top:0!important}
.desktop-client .topbar{display:none}
.desktop-client .chatpage.desktop-desk{height:100dvh!important;min-height:0!important}
.desktop-client .desktop-workspace.chatlayout{grid-template-columns:minmax(276px,292px) minmax(0,1fr);gap:0}
.desktop-client .desktop-workspace.chatlayout.selected.showorder{grid-template-columns:minmax(276px,292px) minmax(390px,1fr) minmax(270px,296px)}
.desktop-client .shop-conversations{min-width:0;border-right:1px solid var(--line)}
.desktop-client .shop-queue-heading{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:14px 14px 10px;border-bottom:1px solid var(--line)}
.desktop-client .shop-queue-heading h2{align-self:center;margin:0;font-size:20px;font-weight:600}
.desktop-client .shop-queue-heading .shoprail{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:7px;margin:2px 0 0;padding:0;border:0;background:transparent}
.desktop-client .shop-queue-heading .shoprail label{flex:none;color:var(--muted);font-size:12px}
.desktop-client .shop-queue-heading .shoprail select{min-width:0;flex:1;height:32px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:14px}
.desktop-client .shop-queue-heading .shop-platform-actions{grid-column:2;grid-row:1;align-self:center;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:12px}
.desktop-client .shop-platform-actions>summary{cursor:pointer;color:var(--blue);list-style:none}
.desktop-client .shop-platform-actions>summary::-webkit-details-marker{display:none}
.desktop-client .shop-platform-actions[data-attention=true]>summary{color:#a13e38}
.desktop-client .shop-platform-actions .shop-connection-main{display:grid;gap:4px;padding:8px 0;color:var(--muted)}
.desktop-client .shop-platform-actions .row{display:flex;flex-wrap:wrap;gap:6px}
.desktop-client .shop-platform-actions[open]{position:absolute;top:100%;left:8px;right:8px;z-index:16;display:block;padding:11px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:#fff!important;box-shadow:0 8px 22px #20252b18}
.desktop-client .shop-platform-actions[open] .shop-connection-main{grid-template-columns:minmax(0,1fr);font-size:13px}
.desktop-client .desktop-workspace .queue{min-width:0;border:0}
.desktop-client .desktop-workspace .queuehead{padding:9px 12px 8px;border-bottom:1px solid var(--line)}
.desktop-client .desktop-workspace .queuehead>input{width:100%;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:6px;font-size:14px}
.desktop-client .desktop-workspace .queuetabs{display:flex;align-items:center;gap:4px;margin-top:5px;flex-wrap:nowrap}
.desktop-client .desktop-workspace .queuetabs button{flex:1;min-width:0;padding:6px 4px;font-size:14px}
.desktop-client .desktop-workspace .queuetabs select{max-width:88px;height:29px;border:1px solid transparent;background:transparent;color:var(--muted);font-size:14px}
.desktop-client .desktop-workspace .conversationitem{min-height:84px;max-height:96px;display:grid;grid-template-columns:40px minmax(0,1fr);align-content:center;gap:9px;padding:9px 10px;border:0;border-bottom:1px solid #eff0ed;border-radius:0;text-align:left}
.desktop-client .desktop-workspace .conversationitem.active{border:0;border-bottom:1px solid #dce5ff;background:var(--blue-soft)}
.desktop-client .desktop-workspace .conversationitem .avatar{width:38px;height:38px;min-width:38px;font-size:14px}
.desktop-client .desktop-workspace .conversationitem-copy{min-width:0;overflow:hidden}
.desktop-client .desktop-workspace .conversationitem .name{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.desktop-client .desktop-workspace .conversationitem .name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}
.desktop-client .desktop-workspace .conversationitem .name small{flex:none;color:var(--muted);font-size:12px}
.desktop-client .desktop-workspace .conversationitem .queue-origin{display:none}
.desktop-client .desktop-workspace .conversationitem .queue-preview{margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4a535b;font-size:13px;line-height:1.45}
.desktop-client .desktop-workspace .conversationitem .queue-meta{display:flex;align-items:center;gap:8px;min-height:15px;margin-top:2px;color:var(--muted);font-size:12px}
.desktop-client .desktop-workspace .conversationitem .queue-meta>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desktop-client .desktop-workspace .conversationitem .queue-state{color:#765610}
.desktop-client .desktop-workspace .unread-badge{top:-4px;right:-5px;min-width:18px;height:18px;border:2px solid #fff;font-size:10px;line-height:14px}
.desktop-client .desktop-workspace .conversationheader{display:block;min-height:0;padding:12px 18px 8px;border-bottom:1px solid var(--line)}
.desktop-client .conversation-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.desktop-client .conversationheader h2{font-size:18px}
.desktop-client .conversationheader p{margin-top:3px;color:var(--muted);font-size:12px}
.desktop-client .conversationheader .row{gap:7px}
.desktop-client .conversation-context{margin:7px 0 0;color:var(--muted);font-size:12px}
.desktop-client .conversation-context summary{cursor:pointer;color:var(--blue)}
.desktop-client .conversation-context>div{display:flex;flex-wrap:wrap;gap:4px 14px;padding:5px 0}
.desktop-client .conversationheader .draft-alert{margin:5px 0 0}
.desktop-client .conversationheader .reply-contact-warning,.desktop-client .conversationheader .reply-contact-note{margin:6px 0 0;font-size:12px;line-height:1.5}
.desktop-client .conversationheader .reply-contact-warning{color:#8c4038}
.desktop-client .conversationheader .reply-contact-note{color:#765610}
.desktop-client .desktop-workspace .message-day{width:max-content;margin:4px auto 12px;padding:3px 9px;border-radius:10px;background:#f4f5f3;color:var(--muted);font-size:12px;line-height:1.4}
.desktop-client .desktop-workspace .thread{padding:15px 22px 12px}
.desktop-client .desktop-workspace .msg{margin-bottom:12px}
.desktop-client .desktop-workspace .msg .label{font-size:12px}
.desktop-client .desktop-workspace .msg .bubble{font-size:15px;line-height:1.65}
.desktop-client .desktop-workspace .msg.event{margin:4px auto 9px;padding:2px 8px;border:1px solid #eceeed;border-radius:12px;background:#fafaf8;color:#707a82;font-size:12px;line-height:1.5}
.desktop-client .desktop-workspace .msg.event .bubble{padding:0;border:0;background:transparent;color:inherit;font-size:12px}
.desktop-client .desktop-workspace .composer{flex:none;margin:0 12px 12px;padding:9px 12px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.desktop-client .desktop-workspace .composer:focus-within{border-color:#91aaf0}
.desktop-client .desktop-workspace .aitools{display:flex;align-items:center;gap:5px;margin:0 0 5px}
.desktop-client .desktop-workspace .composer-tools-label{margin-right:2px;color:var(--muted);font-size:12px}
.desktop-client .desktop-workspace .aitools button,.desktop-client .desktop-workspace .composer-more>summary{height:29px;padding:4px 8px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--blue);font-size:14px}
.desktop-client .desktop-workspace .composer-more{position:relative}
.desktop-client .desktop-workspace .composer-more>summary{cursor:pointer;list-style:none}
.desktop-client .desktop-workspace .composer-more>summary::-webkit-details-marker{display:none}
.desktop-client .desktop-workspace .composer-more-menu{bottom:calc(100% + 5px);left:0;display:grid;min-width:150px;gap:2px;padding:5px;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:0 6px 20px #20252b18}
.desktop-client .desktop-workspace .composer-more-menu button{text-align:left}
.desktop-client .desktop-workspace .composernotice{min-height:0;margin:0 0 5px;padding:0;border:0;background:transparent;color:var(--muted);font-size:12px;line-height:1.5}
.desktop-client .desktop-workspace .composer textarea{min-height:58px;max-height:120px;margin:0 0 7px;padding:8px 9px;border:0;border-radius:5px;background:transparent;font-size:15px;line-height:1.55}
.desktop-client .desktop-workspace .composerfooter{align-items:center;gap:8px}
.desktop-client .desktop-workspace .composerfooter select,.desktop-client .desktop-workspace .composerfooter button{font-size:14px}
.desktop-client .desktop-workspace .composerfooter button.primary{height:36px}
.desktop-client .desktop-workspace .orderpane{min-width:0;overflow:auto;padding:12px 13px;background:#fff}
.desktop-client .desktop-workspace .orderpane-tabs{position:sticky;top:-12px;z-index:2;padding:0 0 8px;background:#fff}
.desktop-client .desktop-workspace .orderpane-tabs [role=tab]{font-size:13px}
.desktop-client .desktop-workspace .orderpane-tab h3{margin:8px 0 5px;font-size:14px}
.desktop-client .desktop-workspace .orderpane-tab .fact,.desktop-client .desktop-workspace .orderpane-tab .notice{font-size:13px;line-height:1.55}
.desktop-client .desktop-workspace .orderpane-tab .stack{gap:5px;margin:8px 0}
.desktop-client .desktop-workspace .orderpane-tab .stack button{font-size:14px}
.desktop-client .desktop-workspace .business-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 5px}
.desktop-client .desktop-workspace .business-heading h3{margin:0}
.desktop-client .desktop-workspace .business-heading button{font-size:14px}
.desktop-client .desktop-workspace .product-ref{padding:8px 0;border-bottom:1px solid #eff0ed;font-size:13px}
.desktop-client .desktop-workspace .product-ref details{margin-top:3px}
.desktop-client .desktop-workspace .product-ref details summary{cursor:pointer;color:var(--blue);font-size:12px}
.desktop-client .desktop-workspace .business-records{margin-top:10px;padding:8px 0;border-top:1px solid var(--line)}
.desktop-client .desktop-workspace .business-records>summary{cursor:pointer;font-size:13px;font-weight:600}
.desktop-client .desktop-workspace .orderpane-tab details{margin-top:8px}
.desktop-client :focus-visible{outline:2px solid #3568e8;outline-offset:2px}
.desktop-client ::selection{background:#dce6ff;color:#20252b}
@media(max-width:1280px){.desktop-client .desktop-workspace.chatlayout{grid-template-columns:minmax(250px,270px) minmax(0,1fr)}.desktop-client .desktop-workspace.chatlayout.selected.showorder{grid-template-columns:minmax(250px,270px) minmax(360px,1fr) minmax(255px,272px)}.desktop-client .desktop-workspace .conversationheader{padding-left:14px;padding-right:14px}.desktop-client .desktop-workspace .thread{padding-left:16px;padding-right:16px}}
@media(max-width:1040px) and (min-width:901px){.desktop-client .desktop-workspace.chatlayout{grid-template-columns:minmax(232px,250px) minmax(0,1fr)}.desktop-client .desktop-workspace.chatlayout.selected.showorder{grid-template-columns:minmax(232px,250px) minmax(360px,1fr) minmax(250px,264px)}.desktop-client .desktop-workspace .composer{margin-left:8px;margin-right:8px}}
@media(max-width:900px){.desktop-client .main{margin-left:62px!important}.desktop-client .desktop-workspace.chatlayout,.desktop-client .desktop-workspace.chatlayout.selected.showorder{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.desktop-client .desktop-workspace.selected .shop-conversations{display:none}.desktop-client .desktop-workspace.selected .chatcenter{display:flex;grid-column:1;grid-row:1}.desktop-client .desktop-workspace.chatlayout.selected.showorder .orderpane{position:absolute;inset:0 0 auto auto;z-index:5;width:min(340px,88vw);height:calc(100% - 1px);max-height:none;box-shadow:-8px 0 24px #20252b18}.desktop-client .desktop-workspace.chatlayout.selected.showorder .chatcenter{margin-right:0}.desktop-client .conversation-title-row{align-items:flex-start}.desktop-client .conversation-title-row>.row:last-child{flex-wrap:wrap;justify-content:flex-end}.desktop-client .desktop-workspace .composerfooter{flex-wrap:wrap}}
/* Explicitly replace the legacy 64px horizontal sidebar layout in the desktop shell. */
.desktop-client .sidebar{height:100dvh!important;min-height:100dvh;inset:0 auto 0 0;align-items:center!important;justify-content:flex-start!important;padding:12px 7px!important;gap:8px!important}
.desktop-client .main{margin-left:76px!important;padding-top:0!important}
.desktop-client .chatpage.desktop-desk{height:100dvh!important;min-height:0!important}
.desktop-client .desktop-workspace .chatcenter{display:flex;flex-direction:column;min-height:0}
.desktop-client .desktop-workspace .thread{flex:1;min-height:0}
.desktop-client .desktop-workspace .composer{flex:none;border:1px solid #e4e6e8;border-radius:9px;margin:0 12px 12px;padding:10px 12px;background:#fff}
.desktop-client .desktop-workspace .composer textarea{width:100%;min-height:64px;max-height:120px}
.desktop-client .desktop-workspace .aitools{display:flex;flex-wrap:wrap}
.desktop-client .desktop-workspace .aitools button{font-size:13px;color:#3568e8}

.desktop-client .desktop-workspace .composerfooter{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.desktop-client .desktop-workspace .composerfooter button.primary{flex:none}
.desktop-client .desktop-workspace .shop-conversations-heading h2{font-size:17px}
.desktop-client .desktop-workspace .conversationheader{flex-wrap:wrap}
@media(max-width:1040px) and (min-width:901px){.desktop-workspace.chatlayout.selected.showorder{grid-template-columns:minmax(250px,250px) minmax(340px,1fr) minmax(264px,264px)!important}.desktop-workspace.chatlayout.selected.showorder .chatcenter{margin-right:0!important}.desktop-workspace.chatlayout.selected.showorder .orderpane{position:relative!important;inset:auto!important;width:auto!important;max-height:none;box-shadow:none!important}}
@media(max-width:900px){.desktop-client .sidebar{width:62px!important;min-width:62px!important;max-width:62px!important}.desktop-client .main{margin-left:62px!important}.desktop-client .chatpage.desktop-desk{height:100dvh!important}}
.desktop-client .team-preview{margin-top:10px;padding:10px;border:1px solid #e4e6e8;border-radius:7px;background:#fafaf8}
.desktop-client .team-preview-heading{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.desktop-client .team-preview-heading span,.desktop-client .team-preview-message>span{font-size:12px;color:#606b75}
.desktop-client .team-preview-message{display:flex;gap:8px;padding:7px 0;border-top:1px solid #eceeed;font-size:13px}
.desktop-client .team-preview-message>span{flex:none;width:32px}
.desktop-client .team-preview-message p{min-width:0;line-height:1.5;overflow-wrap:anywhere}
.desktop-client .team-preview-actions{display:flex;gap:7px;padding-top:8px;border-top:1px solid #eceeed}
.desktop-client .team-conversation.selected{background:#edf2ff}
.desktop-client #nav>.nav:not(.active),.desktop-client #nav>.business-menu>summary{background:transparent!important;color:#e3e8e9!important}
.desktop-client #nav>.nav.active{background:#3568e8!important;color:#fff!important}
.desktop-client .desktop-workspace .composer .composerfooter button.primary{background:#3568e8!important;border-color:#3568e8!important;color:#fff!important}
.desktop-client .desktop-workspace .orderpane .fact,.desktop-client .desktop-workspace .orderpane .fact>span,.desktop-client .desktop-workspace .orderpane .notice{color:#606b75!important}
.desktop-client .desktop-workspace .orderpane h3{color:#20252b}
.desktop-client .supervision-layout{grid-template-columns:minmax(0,1fr) minmax(300px,31%);align-items:start}
.desktop-client .team-left-column{display:flex;flex-direction:column;gap:14px;min-width:0;align-self:start}
.desktop-client .team-left-column>.role-section{margin:0}
.desktop-client .team-member-pane{grid-column:2;grid-row:1;align-self:start}
.desktop-client .team-table-section{grid-column:1;grid-row:1;align-self:start}
@media(max-width:1000px){.desktop-client .supervision-layout{grid-template-columns:1fr}.desktop-client .team-member-pane{grid-column:1;grid-row:2}.desktop-client .team-left-column{grid-column:1;grid-row:1}}
.desktop-client .team-table-section{width:100%}
.desktop-client .orderpane-tabs{display:flex;gap:5px;padding-bottom:10px;margin-bottom:8px;border-bottom:1px solid #e4e6e8}
.desktop-client .orderpane-tabs [role="tab"]{flex:1;padding:6px 7px;border:0;border-radius:6px;background:transparent;color:#606b75;font-size:13px}
.desktop-client .orderpane-tabs [role="tab"].active{background:#edf2ff;color:#3568e8;font-weight:600}
.desktop-client .orderpane-tab{display:none}
.desktop-client .orderpane-tab.active{display:block}
.desktop-client .orderpane>h3,.desktop-client .orderpane-tab>h3{font-size:14px;color:#20252b}
.desktop-client .orderpane-tab details{margin-top:8px;padding:8px 0;border-top:1px solid #eceeed}
.desktop-client .orderpane-tab details summary{cursor:pointer;color:#3568e8;font-size:13px}
.desktop-client .composer-more{position:relative}
.desktop-client .composer-more>summary{cursor:pointer;padding:5px 9px;border:1px solid #e4e6e8;border-radius:6px;background:#fff;color:#606b75;font-size:13px;list-style:none}
.desktop-client .composer-more>summary::-webkit-details-marker{display:none}
.desktop-client .composer-more-menu{position:absolute;left:0;bottom:calc(100% + 6px);z-index:30;display:flex;gap:6px;width:max-content;max-width:calc(100vw - 120px);padding:7px;border:1px solid #e4e6e8;border-radius:7px;background:#fff;box-shadow:0 6px 20px #20252b18}
.desktop-client .sidebar>.navfoot{position:absolute;left:7px;right:7px;bottom:8px;width:62px;display:flex!important;visibility:visible;opacity:1;flex-direction:column;align-items:center;gap:6px;margin:0!important;padding:8px 0 0;border-top:1px solid #465054}.desktop-client .sidebar>.navfoot .toptools{position:static;display:flex;flex-direction:column;align-items:center;gap:4px;width:62px;height:auto;padding:0;border:0;background:transparent;box-shadow:none}.desktop-client .sidebar>.navfoot .toptools #mode{display:none}.desktop-client .sidebar>.navfoot .toptools #stream-status{display:block;max-width:62px;overflow-wrap:anywhere;text-align:center;font-size:10px;line-height:1.2;color:#bfc9cb}.desktop-client .sidebar>.navfoot .toptools #stream-status.disconnected{color:#ff8e86}.desktop-client .sidebar>.navfoot .toptools [data-action="refresh"]{width:30px;height:28px;padding:0;border:0;background:transparent;color:#e3e8e9;font-size:20px;line-height:1}
.desktop-client .sidebar>.navfoot #who{display:block!important;max-width:62px;white-space:normal;overflow-wrap:anywhere;text-align:center;color:#f1f2f2;font-size:12px;line-height:1.3}
.desktop-client .sidebar>.navfoot .textbtn{display:block!important;width:62px;white-space:normal;text-align:center;color:#e3e8e9;font-size:12px}
.desktop-client .sidebar>#nav{height:auto!important;min-height:0;flex:0 0 auto;align-items:stretch!important}
/* Customer panel: platform observations, local follow-up and restrictions stay distinct. */
.desktop-workspace .orderpane .platform-observation{margin:12px 0;padding:10px 12px;border-radius:7px;background:#f2f5f8;color:#465b69;font-size:12px;line-height:1.7}
.desktop-workspace .orderpane .contact-alert{margin:8px 0;padding:9px 11px;border-left:3px solid #b95e52;background:#fff5f2;color:#8c4038;font-size:12px;line-height:1.7}
.desktop-workspace .orderpane .detail-explain{margin:8px 0;color:#606b75;font-size:12px;line-height:1.7}
.desktop-workspace .orderpane .tech-details .fact{align-items:flex-start}
.desktop-workspace .orderpane .tech-details .labelcode{display:block;max-width:100%;overflow-x:auto;white-space:nowrap;text-align:left;font-size:12px;color:#536573;user-select:text}
.desktop-workspace .orderpane .fact{font-size:12px;line-height:1.65}

/* Customer panel type and long technical identifiers. */
.desktop-workspace .orderpane .producthero b{font-size:16px;line-height:1.55}
.desktop-workspace .orderpane .producthero small{font-size:12px;line-height:1.65;color:#606b75}
.desktop-workspace .orderpane .fact{font-size:13px;line-height:1.7}
.desktop-workspace .orderpane .fact>span:first-child{flex:0 0 112px;color:#606b75}
.desktop-workspace .orderpane .fact>span:last-child{min-width:0;flex:1;text-align:left}
.desktop-workspace .orderpane details summary{font-size:13px;color:#39454f;line-height:1.7}
.desktop-workspace .orderpane .tech-details .fact{display:block;margin:14px 0}
.desktop-workspace .orderpane .tech-details .fact>span:first-child{display:block;margin-bottom:5px}
.desktop-workspace .orderpane .tech-details .fact>span:last-child{display:block;width:100%;min-width:0}
.desktop-workspace .orderpane .tech-details .labelcode{box-sizing:border-box;width:100%;max-width:100%;overflow-x:auto;white-space:nowrap;text-align:left;font-size:12px;line-height:1.7;color:#536573;user-select:text}
.desktop-workspace .orderpane details:not([open])>summary:hover{color:#20252b}

.customer-avatar-wrap{overflow:visible;align-items:center;justify-content:center;border-radius:50%}.customer-avatar-wrap .customer-avatar-fallback{width:100%;height:100%;min-width:0;border-radius:50%}.customer-avatar-image{position:absolute;inset:0;z-index:1;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center}.customer-avatar-wrap .unread-badge{z-index:2}

/* At 901–1040px, reserve real grid tracks for all three work areas. The older fixed minimums exceed the available width and let the composer sit underneath the facts pane. */
@media (min-width:901px) and (max-width:1040px){
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder{grid-template-columns:minmax(188px,26%) minmax(0,1fr) minmax(230px,32%)!important}
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder>.shop-conversations,
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder>.chatcenter,
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder>.orderpane{min-width:0;max-width:100%}
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder>.chatcenter{grid-column:2!important;margin:0!important;width:auto!important;overflow:hidden}
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder>#conversation-business-pane{display:block!important;grid-column:3!important;position:relative!important;inset:auto!important;width:auto!important;max-height:none;box-shadow:none!important;padding:16px 14px}
 body:has(.chatlayout.selected:not(.showorder)) #conversation-business-pane{display:none!important}
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder .orderpane .fact{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;justify-content:stretch;overflow-wrap:anywhere}
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder .orderpane .fact>span:first-child{flex:auto;color:#606b75}
 body:has(.chatlayout.selected.showorder) .chatlayout.selected.showorder .orderpane .fact>span:last-child{text-align:left;min-width:0;overflow-wrap:anywhere}
 .desktop-workspace.selected .conversationheader{min-width:0;padding:10px 12px}
 .desktop-workspace.selected .conversationheader>.conversation-title-row{min-width:0;flex-wrap:wrap;align-items:flex-start}
 .desktop-workspace.selected .conversation-title-row>.row{min-width:0;flex-wrap:wrap}
 .desktop-workspace.selected .conversation-title-row>.row:last-child{justify-content:flex-end}
 .desktop-workspace.selected .composer{width:auto;max-width:100%;min-width:0;margin:0 8px 10px;padding:10px}
 .desktop-workspace.selected .composer textarea{display:block;width:100%;min-width:0;max-width:100%}
 .desktop-workspace.selected .composerfooter>.row{min-width:0}
 .desktop-workspace.selected .composerfooter>.row:last-child{justify-content:flex-end}
 .desktop-workspace.selected .inbound-candidates,
 .desktop-workspace.selected .inbound-candidate{width:100%;max-width:100%;min-width:0}
 .desktop-workspace.selected .inbound-candidate p{max-width:100%;overflow-wrap:anywhere;word-break:normal}
 .desktop-workspace.selected .inbound-candidate>button{max-width:100%;white-space:normal;line-height:1.45}
}

/* Independent official-platform entry surfaces; customer avatars and unread badges stay shared. */
.desktop-platform-field{display:grid;gap:6px;margin:14px 0;color:#424a52;font-size:13px;font-weight:600}
.desktop-platform-field select{width:100%;min-height:38px;border:1px solid #d7dfe8;border-radius:7px;padding:6px 10px;background:#fff;color:#20252b;font-size:14px}
.desktop-platform-field select:focus-visible{outline:3px solid #a9bdf8;outline-offset:2px}
.official-platform-workspace{align-items:center;justify-content:center;gap:14px;padding:36px;text-align:center;background:#fff}
.official-platform-mark{display:grid;place-items:center;width:52px;height:52px;border:1px solid #dce5ff;border-radius:14px;background:#edf2ff;color:#3568e8;font-size:22px;font-weight:600}
.official-platform-workspace .platform-eyebrow,.official-queue-copy .platform-eyebrow{color:#3568e8;font-size:12px;font-weight:600}
.official-platform-workspace h2{max-width:600px;color:#20252b;font-size:24px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.official-platform-workspace>p:not(.platform-eyebrow){max-width:600px;color:#424a52;font-size:15px;line-height:1.9}
.official-platform-actions{display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap;margin-top:6px}
.official-platform-actions .primary{min-height:40px;padding:8px 16px;background:#3568e8;border-color:#3568e8}
.official-platform-workspace small{max-width:560px;color:#606b75;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.official-platform-queue{display:flex;align-items:flex-start;justify-content:center;padding:18px 14px;background:#fff}
.official-queue-copy{display:grid;justify-items:start;gap:8px;width:100%;padding:14px;border:1px solid #e4e6e8;border-radius:8px;background:#f7f7f4}
.official-queue-copy strong{color:#20252b;font-size:14px}
.official-queue-copy p{color:#606b75;font-size:12px;line-height:1.7}
.official-queue-copy button{min-height:34px;border-color:#3568e8;color:#3568e8;background:#fff;font-size:13px}
.official-queue-copy button.textbtn{min-height:28px;border:0;background:transparent}
@media(max-width:1100px){.official-platform-workspace{padding:24px}.official-platform-workspace h2{font-size:21px}.official-platform-queue{padding:14px 10px}}

/* Cross-role operations stay attached to the customer or shop they affect. */
.platform-capability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.platform-capability-grid>div{min-width:0;display:grid;gap:3px;padding:7px 8px;border-radius:6px;background:#fff}
.platform-capability-grid small{color:#68737d;font-size:11px}
.platform-capability-grid b{overflow-wrap:anywhere;color:#33414d;font-size:12px;font-weight:600}
.capability-unknown{color:#805e1c;font-size:12px;line-height:1.6}
.business-policy-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.business-policy-toolbar label{display:flex;align-items:center;gap:8px;color:#46515b;font-size:13px}
.business-policy-toolbar select{min-height:36px;max-width:min(320px,70vw);padding:6px 9px;border:1px solid #d7dfe8;border-radius:7px;background:#fff;color:#20252b}
.capability-inline{color:#68737d;font-size:12px}
.business-policy-list,.team-record-list{display:grid;gap:9px;margin:10px 0}
.business-policy,.team-record{min-width:0;padding:11px 12px;border:1px solid #e4e6e8;border-radius:8px;background:#fff}
.business-policy h3{margin:0;color:#20252b;font-size:15px;line-height:1.5}
.business-policy p,.team-record p{margin:6px 0;color:#46515b;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.business-policy small,.team-record small{color:#68737d;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.business-policy .row,.team-record .row{gap:7px;flex-wrap:wrap}
.team-ops{margin-top:14px;padding-top:12px;border-top:1px solid #e4e6e8}
.team-ops>h4{margin:12px 0 7px;color:#33414d;font-size:13px}
.business-trial-result,.policy-result{margin:8px 0;padding:10px 11px;border:1px solid #dce5ff;border-radius:7px;background:#f5f7ff;color:#344256;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.business-trial-result textarea{box-sizing:border-box;width:100%;min-height:84px;margin:7px 0;padding:8px;border:1px solid #d7dfe8;border-radius:6px;font:inherit;line-height:1.6}
.checkline{display:flex;align-items:flex-start;gap:8px;color:#46515b;font-size:13px;line-height:1.6}
.checkline input{margin-top:4px}
.platform-capabilities{margin-top:10px;padding-top:8px;border-top:1px solid #eceeed}
.platform-capabilities summary{color:#536573;font-size:12px}
.platform-capabilities .platform-capability-grid{grid-template-columns:1fr}
.platform-action-note{display:block;margin:5px 0 0;color:#765b26;font-size:12px;line-height:1.5}
@media(max-width:640px){.platform-capability-grid{grid-template-columns:1fr}.business-policy-toolbar{align-items:stretch}.business-policy-toolbar label{justify-content:space-between}.business-policy-toolbar label select{flex:1;min-width:0}.business-policy-toolbar>.primary{width:100%}}
.login-providers{display:grid;gap:10px;margin-top:24px}.login-company{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 14px;border-color:#087f80;color:#087f80;font-weight:600}.login-company span{font-size:18px}.login-provider-note{padding:10px 12px;border-radius:8px;background:#f3f6f7;color:#687985;font-size:12px;line-height:1.7}.login-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#8997a1;font-size:11px}.login-divider:before,.login-divider:after{content:"";height:1px;flex:1;background:#e4ebee}.login-error{margin-top:14px;font-size:12px;line-height:1.6}.login form[hidden],.login-divider[hidden]{display:none}
.business-fact-meta{display:block!important;flex-basis:100%!important;color:#606b75;font-size:12px!important;line-height:1.6;margin-top:4px}.inbound-candidates{padding:10px 12px;margin:0 0 10px;border:1px solid #dbe8e5;border-radius:9px;background:#f7fbfa}.inbound-candidates>.row{margin-bottom:7px}.inbound-candidates>p{font-size:12px}.inbound-candidate{padding:9px 0;border-top:1px solid #e5eeeb}.inbound-candidate p{margin:5px 0 8px;color:#314a55;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.inbound-candidate .row small{font-size:12px;color:#606b75}.inbound-candidate>button{margin-top:7px}.inbound-candidate .risk{display:block}
.team-duty{padding:18px 20px;margin:12px 0}.team-duty h2{margin-bottom:5px}.team-duty>p{margin:0 0 12px;color:#687985;font-size:12px}.team-duty .checkline{display:flex;align-items:center;gap:8px;margin:10px 0;color:#384d58;font-size:12px}.team-duty-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0}.team-duty-fields>label{display:block;color:#60717c;font-size:12px}.team-duty-fields select{display:block;width:100%;margin-top:5px}.team-duty-fields select[multiple]{min-height:75px}.team-duty-days{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}.team-duty-days label{display:flex;gap:4px;align-items:center;padding:4px 6px;border:1px solid #e4ebee;border-radius:6px}.team-duty-times{display:flex;gap:8px;align-items:center;margin-top:5px}.team-duty-times input{min-width:0;flex:1}.team-duty .row{align-items:center;margin-top:8px}
@media(max-width:700px){.team-duty-fields{grid-template-columns:minmax(0,1fr)}.team-duty{padding:14px}}
.desktop-client .message-content-attachment{display:inline-flex;max-width:100%;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:7px 9px;border:1px solid #e4e6e8;border-radius:6px;background:#f7f7f4;color:#20252b;vertical-align:middle}
.desktop-client .message-content-attachment b{font-size:13px;font-weight:600}
.desktop-client .message-content-attachment span{overflow-wrap:anywhere}
.desktop-client .message-content-attachment small{color:#606b75;font-size:12px}

/* Task B: keep evidence readable and private adoption reachable in the existing workbench. */
.inbound-candidates{max-height:104px;overflow-y:auto;padding:6px 9px;margin-bottom:6px}
.inbound-candidates>.row{margin-bottom:3px;gap:4px}
.inbound-candidates>.row small{font-size:12px}
.inbound-candidate{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 0}
.candidate-preview-copy{min-width:0}
.candidate-preview-copy small{display:block;font-size:12px;color:#606b75;line-height:1.5}
.inbound-candidate .candidate-preview-copy p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:12px;line-height:1.6}
.inbound-candidate>button{margin:0;white-space:nowrap!important;font-size:12px}
.chatcenter:has(#inbound-candidates) .thread{min-height:0}
.chatcenter:has(.after-sales-reply-context) .thread,.chatcenter:has(.business-trial-feedback:not([hidden])) .thread{min-height:0}
.after-sales-page{color:#20252b;max-width:1500px}
.after-sales-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.after-sales-heading h1{font-size:23px;line-height:1.45}
.after-sales-heading p,.after-sales-shop{color:#606b75;font-size:13px}
.after-sales-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:16px}
.after-sales-filters label{display:grid;gap:5px;color:#606b75;font-size:13px}
.after-sales-filters input,.after-sales-filters select{min-height:36px;font-size:14px}
.after-sales-layout{display:grid;grid-template-columns:minmax(230px,28%) minmax(0,1fr);gap:22px;align-items:start}
.after-sales-list{min-width:0;border:1px solid #e4e6e8;background:#fff;border-radius:8px;overflow:hidden}
.after-sales-list-heading{padding:10px 12px;border-bottom:1px solid #e4e6e8;color:#606b75;font-size:13px}
.after-sales-row{display:grid;gap:4px;width:100%;padding:13px 12px;border:0;border-bottom:1px solid #e4e6e8;border-radius:0;text-align:left}
.after-sales-row.active{background:#edf2ff;box-shadow:inset 0 0 0 1px #b7c9f6}
.after-sales-row b{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.after-sales-row span{font-size:12px;color:#606b75;overflow-wrap:anywhere}
.after-sales-pagination{padding:10px;justify-content:space-between}
.after-sales-detail{min-width:0;padding:20px;border:1px solid #e4e6e8;border-radius:8px;background:#fff}
.after-sales-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.after-sales-detail h2{font-size:18px;margin:4px 0}
.after-sales-detail header p{font-size:13px;overflow-wrap:anywhere}
.after-sales-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;margin:20px 0}
.after-sales-facts div{min-width:0}.after-sales-facts dt{font-size:12px;color:#606b75}.after-sales-facts dd{margin:3px 0 0;font-size:14px;overflow-wrap:anywhere}
.after-sales-section{margin-top:20px;padding-top:16px;border-top:1px solid #e4e6e8}
.after-sales-section h3{font-size:14px;margin-bottom:8px}.after-sales-section p{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.after-sales-section small{font-size:12px;color:#606b75}.after-sales-description{white-space:pre-wrap}
.after-sales-section details{margin-top:12px}.after-sales-section summary{font-size:13px;cursor:pointer;color:#3568e8}
.after-sales-unlinked{color:#606b75}.after-sales-reply{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.after-sales-reply span{flex:1;min-width:80px;font-size:14px}
.after-sales-compensation{padding:14px 0;border-bottom:1px solid #e4e6e8}.after-sales-compensation p{margin:6px 0}.after-sales-compensation>.row:last-child{margin-top:8px}
.after-sales-execution{font-weight:600}.after-sales-activity{padding:8px 0}
.after-sales-reply-context{display:flex;flex:none;align-items:center;gap:8px;padding:5px 12px;background:#edf2ff;color:#344256;font-size:12px}
.after-sales-reply-context>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.after-sales-candidate-context{padding:10px 0;border-bottom:1px solid #e4e6e8}.after-sales-candidate-context p{margin:4px 0;font-size:13px}.after-sales-candidate-context small{font-size:12px;color:#606b75}
@media(max-width:1100px){.after-sales-page{padding:20px}.after-sales-layout{grid-template-columns:240px minmax(0,1fr);gap:14px}.after-sales-detail{padding:16px}.after-sales-heading{flex-wrap:wrap}}
@media(max-width:760px){.after-sales-layout{grid-template-columns:1fr}.after-sales-list{max-height:260px;overflow-y:auto}.after-sales-facts{gap:12px}.after-sales-heading h1{font-size:22px}}
.business-trial-result{display:flex;flex-direction:column;max-height:calc(90dvh - 130px);padding:0;border:0;border-radius:0;background:#fff;color:#20252b;font-size:14px;line-height:1.7}
.candidate-body{min-height:0;overflow-y:auto;padding-right:6px}
.business-trial-result .candidate-text{margin:12px 0 16px;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
.candidate-risk{padding:10px 12px;background:#fff8eb;color:#77521d;border-radius:6px}
.candidate-risk ul{margin:4px 0 0;padding-left:20px}
.candidate-gaps{color:#77521d}
.candidate-evidence{margin:16px 0;border-top:1px solid #e4e6e8;padding-top:12px}
.candidate-evidence>summary{cursor:pointer;font-size:14px;font-weight:600}
.candidate-evidence-list{list-style:none;margin:10px 0;padding:0}
.candidate-evidence-list>li{display:grid;gap:3px;padding:10px 0;border-bottom:1px solid #e4e6e8;overflow-wrap:anywhere}
.candidate-evidence-list small{color:#606b75;font-size:12px}
.candidate-evidence-list p{margin:3px 0 0;white-space:pre-wrap}
.candidate-adoption{flex-shrink:0;margin:12px 0 0;padding:10px 0 0;border-top:1px solid #e4e6e8;background:#fff}
.candidate-adoption>p{margin:0 0 8px;color:#606b75;font-size:12px}
.candidate-adoption>.row{flex-wrap:wrap;gap:8px}
.comparison-selectors,.comparison-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.comparison-selectors{margin:16px 0 22px}
.comparison-selectors label{display:grid;gap:6px;font-size:14px;font-weight:600;min-width:0}
.comparison-selectors select{min-width:0;width:100%;font-size:14px}
.comparison-columns>section{min-width:0}
.comparison-columns h3{margin:0 0 4px;font-size:16px;line-height:1.5}
.comparison-columns small,.comparison-context small{color:#606b75;font-size:12px;line-height:1.6}
.comparison-source{padding:15px 0;border-bottom:1px solid #e4e6e8}
.comparison-source h4{margin:0 0 5px;font-size:14px;line-height:1.6}
.comparison-source p{white-space:pre-wrap;margin:9px 0 0;font-size:14px;line-height:1.75}
.comparison-gap{font-size:13px;line-height:1.7;color:#705329;margin-top:12px}
.comparison-context{padding:10px 0;border-bottom:1px solid #e4e6e8}
.comparison-context p{margin:5px 0}
.comparison-question p{max-height:96px;overflow-y:auto;white-space:pre-wrap;margin:6px 0 0;font-size:14px;line-height:1.75}
.service-results{color:#252b33;font-size:14px;line-height:1.7}
.service-results .head{margin-bottom:20px}.service-results .head p{font-size:14px;color:#606b75}
.results-filters{padding-bottom:12px;border-bottom:1px solid #e4e6e8}.results-common-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}.results-date-range{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:0;margin:0;min-width:0}.results-date-range legend{padding:0;font-size:13px;font-weight:600;margin-bottom:4px}.results-date-range label{display:flex;align-items:center;gap:7px;white-space:nowrap}.results-date-range input{min-width:0}.results-query-actions{align-self:end;padding-bottom:1px}.results-more-filters{margin-top:10px}.results-more-filters>summary{cursor:pointer;padding:6px 0;font-size:13px}.results-more-filters>summary span{margin-left:12px;color:#606b75}.results-more-filters>summary b{margin-left:10px;color:#79501e;font-weight:500}.results-extra-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:10px 0 5px}.results-draft-hint{font-size:12px;color:#79501e;margin-top:6px}
.results-filters label{display:grid;gap:5px;font-size:13px;font-weight:600;min-width:0}
.results-filters input,.results-filters select{width:100%;min-width:0;font-size:14px}
.results-filter-actions{grid-column:1 / -1}.results-filter-actions span{font-size:12px;color:#606b75}
.results-error{padding:12px 0;color:#8b3c31;font-size:14px}.results-feedback{padding:8px 0;color:#606b75;font-size:13px}
.results-summary{padding:14px 0 18px;border-bottom:1px solid #e4e6e8}
.results-summary h2{margin-bottom:10px;font-size:17px}.results-summary h2 small{margin-left:10px;font-weight:400}
.service-results table{font-size:14px}.service-results th{font-size:13px;color:#606b75;background:#f6f7f7;font-weight:600}
.service-results td,.service-results th{padding:12px 14px;line-height:1.6}
.service-results td small,.service-results small{font-size:12px;line-height:1.65;color:#606b75}
.results-summary td:not(:first-child){font-variant-numeric:tabular-nums}.results-summary td small{display:inline;margin-left:6px;white-space:nowrap}
.results-summary p,.results-boundary,.results-range{font-size:13px;color:#606b75;margin-top:10px}
.results-boundary{margin-bottom:24px}.results-layout{display:grid;gap:24px;align-items:start}
.results-records,.results-detail{min-width:0}.results-records h2,.results-detail h2{font-size:18px}
.results-records-heading p{font-size:13px}.results-table-wrap{overflow:auto;max-height:520px;margin-top:14px;border:1px solid #e4e6e8;border-radius:7px}
.results-table-wrap table{min-width:690px}.results-table-wrap th{position:sticky;top:0;z-index:1}
.results-table-wrap tr.selected{background:#edf2f6}.results-pagination{margin-top:14px}
.results-unknown{color:#606b75}.results-warning{color:#79501e}
.results-detail{padding:20px;border:1px solid #e4e6e8;border-radius:8px;background:#fff;overflow-wrap:anywhere}
.results-detail>p{margin-top:12px}.results-detail h3{font-size:15px;margin:24px 0 8px}
.results-source{padding:15px 0;margin-top:14px;border-top:1px solid #e4e6e8;border-bottom:1px solid #e4e6e8}
.results-source>p,.results-activity p,.results-conversation p{white-space:pre-wrap;margin:6px 0 8px}
.results-facts{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:8px;margin:16px 0}.results-facts dt{color:#606b75}.results-facts dd{margin:0}
.results-activity{padding:10px 0;border-bottom:1px solid #e4e6e8}.results-detail .smallbtn{margin:4px 0}
.results-conversation{max-height:65dvh;overflow:auto;font-size:14px;line-height:1.7}.results-conversation article{padding:14px 0;border-bottom:1px solid #e4e6e8}
@media(min-width:1380px){.results-layout.has-detail{grid-template-columns:minmax(0,1fr) 360px}.results-detail{max-height:76dvh;overflow-y:auto}}
@media(max-width:1000px){.service-results .head h1{font-size:23px}.results-summary td,.results-summary th{padding:9px 10px}}
.business-trial-feedback{padding:6px 0;color:#606b75;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.business-trial-feedback.error{color:#77521d}
.business-trial-feedback[hidden]{display:none}
.chatlayout .orderpane-tab:not(.active),.desktop-workspace .orderpane-tab:not(.active){display:none}
.chatlayout .orderpane .fact{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,1fr);gap:5px 10px;padding:10px 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.chatlayout .orderpane .fact>span:last-child{text-align:left}
.chatlayout .orderpane .business-fact-meta{grid-column:1 / -1;color:#606b75;line-height:1.6}
.chatlayout .orderpane .fact.active{border-color:#3568e8;background:#edf2ff}
.chatlayout .orderpane .notice{font-size:12px;line-height:1.6}
.chatlayout .orderpane .product-ref{font-size:14px;line-height:1.6}
@media(max-width:1100px){
 body:not(.desktop-client) .chatpage .chatlayout.selected{grid-template-columns:180px minmax(0,1fr)}
 body:not(.desktop-client) .chatpage .chatlayout.selected>.orderpane{display:none}
 body:not(.desktop-client) .chatpage .chatlayout.selected.showorder{grid-template-columns:175px minmax(0,1fr) 240px}
 body:not(.desktop-client) .chatpage .chatlayout.selected.showorder>.orderpane{display:block;position:static!important;width:auto;min-width:0;max-width:none;box-shadow:none;z-index:auto}
 body:not(.desktop-client) .chatpage .chatlayout.selected .chatcenter,body:not(.desktop-client) .chatpage .chatlayout.selected .composer{min-width:0;max-width:100%}
 body:not(.desktop-client) .chatpage .chatlayout.selected.showorder .orderpane .fact{grid-template-columns:minmax(0,1fr)}
 body:not(.desktop-client) .chatpage .chatlayout.selected .composerfooter{flex-wrap:wrap;gap:8px}
}

@media(max-width:740px){.results-common-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.results-common-filters>label:last-of-type{grid-column:1 / -1}.results-date-range{grid-column:1 / -1}.results-extra-fields{grid-template-columns:1fr}.results-query-actions{grid-column:1 / -1}}

/* H source-bound verification; retains existing Operate tokens and readable type. */
.issue-source-entry{margin-top:6px;font-size:12px;color:var(--blue,#3568e8);background:transparent;border-color:var(--line,#e4e6e8)}
.service-issue-view{font-size:14px;line-height:1.6;min-width:0}
.service-issue-view h3,.issue-candidate-source h3{font-size:16px;margin:0 0 10px}
.issue-original{padding:14px 0;border-bottom:1px solid #e4e6e8}
.issue-original-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;max-height:180px;overflow:auto;font-size:15px}
.issue-original small,.issue-record small,.issue-fix small{display:block;color:#606b75;font-size:12px}
.issue-followup,.issue-attachment{margin:8px 0;font-size:13px}
.issue-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.issue-records,.issue-fixes{margin-top:22px}
.issue-record{padding:14px 0;border-bottom:1px solid #e4e6e8;overflow-wrap:anywhere}
.issue-record p,.issue-fix p{white-space:pre-wrap;margin:8px 0}
.issue-report{padding:12px;background:#f7f7f4;border-radius:8px;margin:12px 0}
.issue-history{padding-left:20px;font-size:13px}
.issue-history li{margin:8px 0}
.issue-form{margin:16px 0;padding:14px;background:#f7f7f4;border-radius:8px}
.issue-form summary{font-weight:600;cursor:pointer}
.issue-form label{display:block;margin:12px 0 6px;font-size:14px}
.issue-form input,.issue-form select,.issue-form textarea{display:block;width:100%;margin-top:6px;font:inherit;min-height:36px}
.issue-form textarea{resize:vertical}
.issue-form button{margin-top:10px}
.issue-error{color:#9a3412}
.issue-explain{color:#606b75;margin:8px 0}
.issue-fix{padding:12px 0;border-bottom:1px solid #e4e6e8}
.issue-fix button{margin:4px 6px 0 0}
.issue-candidate-source{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e4e6e8}
.result-issue-entry{margin-top:20px}
.issue-analyses{margin:24px 0;border-top:1px solid #e4e6e8;padding-top:20px}
.issue-analysis{padding:16px 0;border-bottom:1px solid #e4e6e8;overflow-wrap:anywhere}
.issue-analysis-text{font-size:15px;line-height:1.75;white-space:pre-wrap;margin:12px 0}
.issue-analysis small,.issue-analysis details{font-size:12px;color:#606b75;line-height:1.7}
.issue-analysis details{margin-top:12px}.issue-analysis summary{cursor:pointer;color:#243746;font-size:13px}
.issue-analysis-choices{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:16px 0}
.issue-analysis-choices label{font-size:13px;min-width:0}.issue-analysis-choices select{display:block;width:100%;margin-top:6px;min-height:36px;font:inherit}
.issue-image{margin:12px 0}.issue-image img{display:block;max-width:100%;max-height:400px;object-fit:contain;border:1px solid #e4e6e8;border-radius:6px}
.issue-image figcaption{font-size:12px;color:#606b75;margin-top:6px}
.issue-products-host{margin:0 0 24px;padding:20px;background:#fff;border:1px solid #e4e6e8;border-radius:8px}
@media(max-width:740px){.issue-analysis-choices{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1050px){.service-issue-view .row.between{gap:8px;align-items:flex-start}.issue-actions button{min-height:36px}.issue-original-text{max-height:150px}}
