
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;color:#20342e;background:#f5f7f6;font-size:14px;line-height:1.6;--green:#176b50;--line:#e3eae6;--muted:#73827a}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #80b6a2;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:29px;line-height:1.3;letter-spacing:-.8px;font-weight:650}h2{font-size:18px;font-weight:600}h3{font-size:16px}small{font-size:12px}.app{display:flex;min-height:100vh}.sidebar{width:236px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:31px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;font-size:25px;letter-spacing:-1px;font-weight:750;gap:10px}.brand-mark{display:grid;place-items:center;background:#176b50;color:white;width:34px;height:34px;border-radius:11px;font-size:20px;letter-spacing:-3px;padding-right:3px}.brand-point{color:var(--green);margin-left:-10px}.company{display:flex;gap:10px;border:1px solid var(--line);border-radius:10px;padding:12px 9px;margin:33px 0 30px;align-items:center}.company strong{display:block;font-size:12px;overflow-wrap:anywhere}.company small{display:block;color:var(--muted);font-size:11px}.company-avatar,.avatar{display:grid;place-items:center;background:#e8efeb;color:#4c6c5d;border-radius:12px;flex-shrink:0;width:36px;height:36px;font-weight:600}.nav-label{font-size:10px;letter-spacing:2px;color:#95a198;margin:0 12px 12px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;color:#78857e;margin-bottom:7px;font-weight:500}.nav-item.active{background:#eaf3ee;color:#176b50}.nav-item:hover{background:#f0f4f1}.nav-count{margin-left:auto;font-size:10px;opacity:.7}.sidebar-foot{margin-top:auto;color:#597363;font-size:11px;padding:20px 5px 0}.sidebar-foot>span:last-of-type{float:right;color:#87958c}.sidebar-foot p{font-size:10px;color:#95a198;margin-top:10px}.env-dot,.dot{display:inline-block;background:#91ab9b;border-radius:50%;width:6px;height:6px;margin-right:6px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:77px;flex-shrink:0;border-bottom:1px solid var(--line);padding:0 40px;display:flex;justify-content:space-between;align-items:center;background:#fcfdfc}.breadcrumb{color:#52665a;font-size:12px}.breadcrumb span{margin:0 14px;color:#bac5bd}.top-right{display:flex;align-items:center;gap:20px}.env{font-size:10px;padding:3px 9px;border:1px solid #dce6df;border-radius:5px;color:#7e9083;letter-spacing:1px}.profile{display:grid;place-items:center;border-radius:50%;width:31px;height:31px;background:#ecede5;color:#737a5a;font-size:12px}.main{padding:38px 40px;max-width:1400px;width:100%;margin:0 auto;flex:1}.eyebrow{color:var(--green);font-size:10px;letter-spacing:2px;font-weight:650;margin-bottom:10px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px}.subtitle{color:var(--muted);margin-top:10px;font-size:13px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.button,button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 17px;min-height:40px;background:white;border:1px solid #dce5df;border-radius:7px;color:#365c49;cursor:pointer;font-weight:550;font-size:12px}.button:hover,button:hover{background:#eff5f1;border-color:#b6cbbd}.button.primary{background:var(--green);color:white;border-color:var(--green)}.button.primary:hover{background:#12563f}.button.small{padding:7px 11px;min-height:34px}.text-link{color:var(--green);font-weight:550;font-size:12px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-head{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-head p{font-size:12px;color:var(--muted);margin-top:4px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:21px 24px}.stat p{font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:30px;line-height:1.4;font-weight:550;margin-top:8px}.stat small{color:#8b988e}.badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:11px;padding:4px 9px;border-radius:5px;background:#eef3f0;color:#678171}.badge.good{background:#e9f5ed;color:#227346}.badge.good .dot{background:#49a271}.badge.warn{background:#fbf0df;color:#9b742b}.badge.warn .dot{background:#c69b4a}.number-row{display:flex;align-items:center;gap:15px;padding:24px 25px;border-bottom:1px solid var(--line)}.number-row:last-child{border:0}.number-icon{width:44px;height:44px;border-radius:12px;background:#eaf4ee;color:#37805c;display:grid;place-items:center;font-size:22px}.number-info{flex:1;min-width:0}.number-info p{font-size:11px;color:var(--muted);margin-top:4px}.number-info h3{overflow-wrap:anywhere}.notice{display:flex;gap:13px;padding:17px 19px;border:1px solid #e1e9e3;background:#eef4ef;border-radius:9px;margin-top:20px;font-size:12px;color:#607666}.notice strong{color:#3e604c;display:block;font-weight:550;margin-bottom:2px}.notice-symbol{font-size:18px}.empty{text-align:center;padding:56px 24px;color:var(--muted)}.empty-symbol{margin:0 auto 20px;display:grid;place-items:center;width:66px;height:66px;border-radius:20px;background:#edf3ef;color:#7d9d89;font-size:36px}.empty h2{color:#3d5848;font-size:18px}.empty p{max-width:350px;margin:10px auto 20px;font-size:12px;line-height:1.9}.footer{display:flex;justify-content:space-between;padding:18px 40px;font-size:10px;color:#9ba89e;gap:15px}.company-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}.company-card{padding:28px;display:block}.company-card:hover{border-color:#9ebba9}.company-card h2{margin:20px 0 6px}.company-card p{color:var(--muted);font-size:12px;margin-bottom:25px}.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.qr-panel{padding:30px;display:flex;align-items:center;justify-content:center;min-height:350px;flex-direction:column}.qr-panel img{max-width:100%;width:260px;height:260px;object-fit:contain;border-radius:10px;border:1px solid var(--line)}.qr-caption{font-size:11px;color:var(--muted);margin-top:18px}.steps{padding:30px}.steps ol{list-style:none;padding:0;counter-reset:steps;margin-top:28px}.steps li{counter-increment:steps;position:relative;padding:0 0 28px 43px;font-size:13px}.steps li:before{content:counter(steps);position:absolute;left:0;top:0;display:grid;place-items:center;border:1px solid #dce6df;border-radius:50%;width:27px;height:27px;font-size:12px;color:var(--green)}.steps li p{font-size:12px;color:var(--muted);margin-top:5px}.inbox{display:grid;grid-template-columns:310px minmax(0,1fr);height:calc(100vh - 253px);min-height:470px}.chat-sidebar{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.chat-list{overflow:auto;flex:1}.search{padding:16px;border-bottom:1px solid var(--line)}.search input{width:100%;border:1px solid var(--line);background:#f7f9f7;border-radius:7px;padding:10px 12px;color:#385443}.search button{margin-top:8px;width:100%;min-height:30px;padding:4px}.chat-link{display:flex;gap:11px;padding:17px 18px;border-bottom:1px solid #f0f3f0;align-items:center}.chat-link:hover{background:#f7faf8}.chat-link.selected{background:#edf5ef;border-left:3px solid var(--green);padding-left:15px}.chat-link .avatar{width:38px;height:38px;font-size:13px}.chat-name{font-size:12px;font-weight:550;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}.chat-meta{color:#90a095;font-size:10px}.conversation{min-width:0;display:flex;flex-direction:column;background:#f8faf8;min-height:0}.conversation-header{display:flex;gap:12px;align-items:center;padding:19px 24px;background:white;border-bottom:1px solid var(--line)}.conversation-header h2{font-size:14px;overflow-wrap:anywhere}.conversation-header p{font-size:10px;color:var(--muted)}.messages{padding:25px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:17px;list-style:none;margin:0}.message{align-self:flex-start;max-width:82%;background:white;border:1px solid var(--line);border-radius:0 12px 12px 12px;padding:12px 15px;min-width:100px}.message.outgoing{align-self:flex-end;background:#e5f0e8;border-color:#d7e6dc;border-radius:12px 0 12px 12px}.message-author{font-size:10px;color:#52775e;margin-bottom:5px}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.message time{display:block;font-size:9px;color:#91a095;text-align:right;margin-top:8px}.attachment{font-size:11px;padding:8px;margin-top:8px;border:1px dashed #cbd9cf;border-radius:6px;color:#73877a}.composer{padding:17px 22px;background:white;border-top:1px solid var(--line);font-size:11px;color:#839489}.mobile-back{display:none}.login-wrap{max-width:800px;margin:45px auto;display:grid;grid-template-columns:1fr 1fr;min-height:400px}.login-brand{background:#1d513f;color:#f2f8f4;padding:45px 35px;display:flex;flex-direction:column;justify-content:space-between}.login-brand h2{font-size:28px;line-height:1.5;font-weight:500;letter-spacing:-1px}.login-brand p{font-size:12px;color:#b6cfc0;margin-top:20px}.login-content{padding:45px 35px;display:flex;flex-direction:column;justify-content:center}.login-content h1{font-size:24px}.login-content p{font-size:12px;color:var(--muted);margin:12px 0 25px}.login-content .button{width:100%;margin-bottom:12px}.login-content form{margin-top:10px}.email{overflow-wrap:anywhere}.skip{position:fixed;top:-60px;left:10px;background:white;padding:12px;z-index:10}.skip:focus{top:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:1500px){.inbox{grid-template-columns:350px minmax(0,1fr)}}
@media(max-width:1000px){.sidebar{width:190px;padding:25px 14px}.main{padding:28px 24px}.topbar{padding:0 24px}.inbox{grid-template-columns:250px minmax(0,1fr)}.chat-name{max-width:160px}.number-row{flex-wrap:wrap}.number-row .actions{margin-left:59px}.connection-grid{gap:16px}.steps,.qr-panel{padding:24px}}
@media(max-width:700px){.app{display:block}.sidebar{height:auto;width:100%;position:static;padding:16px 20px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;align-items:center;justify-content:space-between}.brand{font-size:22px}.sidebar .company,.nav-label,.sidebar-foot,.nav-count{display:none}.sidebar nav{display:flex;gap:5px}.nav-item{font-size:11px;padding:8px;margin:0;gap:5px}.topbar{height:55px;padding:0 20px}.main{padding:25px 18px}.top-right{gap:10px}.page-head{align-items:flex-start;flex-wrap:wrap;margin-bottom:20px}h1{font-size:24px}.stats{gap:8px}.stat{padding:14px 12px}.stat strong{font-size:25px}.stat small{font-size:10px}.stat p{font-size:10px}.number-row{padding:20px 16px}.panel-head{padding:18px}.footer{padding:18px;font-size:9px}.connection-grid{grid-template-columns:1fr}.inbox{height:calc(100dvh - 270px);min-height:470px;display:block}.chat-sidebar{height:100%;border-right:0}.conversation{display:none;height:100%}.inbox.has-chat .chat-sidebar{display:none}.inbox.has-chat .conversation{display:flex}.chat-name{max-width:240px}.mobile-back{display:inline-block;color:var(--green);font-size:22px;margin-right:5px}.messages{padding:17px}.message{max-width:90%}.login-wrap{margin:10px auto;grid-template-columns:1fr}.login-brand{padding:28px}.login-brand h2{font-size:23px}.login-brand p{margin-top:10px}.login-content{padding:30px}.empty{padding:40px 20px}.breadcrumb{font-size:11px}.company-grid{grid-template-columns:1fr}}
[hidden]{display:none!important}.composer details{width:100%}.composer summary{cursor:pointer;color:#176b50;font-weight:600}.composer form{padding-top:15px;max-height:340px;overflow:auto}.composer label{display:block;margin:12px 0;color:#385443}.composer input[type=file]{display:block;width:100%;margin-top:6px}.composer textarea{display:block;width:100%;font:inherit;border:1px solid #d6e3d9;border-radius:6px;padding:10px;resize:vertical}.composer [role=status],.attachment [role=status]{display:block;margin:10px 0;overflow-wrap:anywhere}.file-info{font-size:12px;overflow-wrap:anywhere;color:#62796b}.file-preview img{max-width:100%;max-height:340px;object-fit:contain}.file-preview iframe{width:100%;height:400px;border:1px solid #d6e3d9}.file-preview p{font-size:12px}.file-preview{margin:12px 0}dialog{border:1px solid #d6e3d9;border-radius:12px;width:min(800px,95vw);max-height:90dvh;padding:25px;color:#20342e}dialog::backdrop{background:#173a2d99}dialog header{display:flex;justify-content:space-between;align-items:start;gap:20px}dialog h2{overflow-wrap:anywhere}button:disabled{opacity:.5;cursor:wait}.attachment button{font-size:11px;padding:5px 9px;min-height:30px}
.text-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#eef6f2;padding:16px;border-radius:8px;margin-top:12px;max-height:220px;overflow:auto}[data-text-composer]{padding-bottom:18px;margin-bottom:14px;border-bottom:1px solid #e5ebe7}[data-text-composer] textarea{width:100%;box-sizing:border-box}
.module-card{padding:24px;margin:20px 0}.module-card h2{margin-bottom:10px}.module-card p{color:var(--muted);margin:8px 0 16px}.module-card .button{margin:6px 8px 0 0}.module-card label{display:block;margin:12px 0}.module-card input[type=checkbox]{accent-color:var(--green);width:18px;height:18px;vertical-align:middle;margin-right:8px}.module-card input:not([type]){display:block;width:min(100%,480px);padding:10px;border:1px solid var(--line);border-radius:7px;margin-top:6px}.module-card button{margin-top:10px}@media(max-width:700px){.module-card{padding:18px}.sidebar{flex-wrap:wrap;gap:12px}.sidebar nav{flex-wrap:wrap}}

/* Company staff management: spacious controls on desktop and mobile. */
.team-form{display:grid;gap:18px;max-width:720px;margin-top:20px}
.team-form>label{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0}
.team-form input[type=email],.team-form select{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #d5ddd8;border-radius:8px;background:#fff;color:#203c32;font:inherit}
.team-form input[readonly]{background:#f6f8f7;color:#52675f}
.team-form>label:has(input[type=checkbox]){flex-direction:row;align-items:center}
.team-form fieldset{border:1px solid #dce4df;border-radius:10px;padding:16px;margin:0;min-width:0}
.team-form legend{padding:0 6px;font-weight:600}
.team-form button{justify-self:start;min-height:44px}
.team-form input:focus-visible,.team-form select:focus-visible{outline:2px solid #28735b;outline-offset:2px}
/* WhatsApp module: conversation-first layout; isolated from operator/team pages. */
body:has(.wa-module){background:#fff;color:#111b21}
body:has(.wa-module) .main{max-width:none;padding:0;min-height:0}
body:has(.wa-module) .topbar{height:49px;padding:0 24px}
body:has(.wa-module) .footer{display:none}
body:has(.wa-module) .sidebar{width:194px;padding:24px 14px;background:#f7f9f8}
body:has(.wa-module) .brand{font-size:23px}
body:has(.wa-module) .company{margin:26px 0 24px;background:#fff}
body:has(.wa-module) .nav-item[href^="/whatsapp"]{background:#d9fdd3;color:#165c38}
.wa-module .inbox{border:0;border-radius:0;grid-template-columns:minmax(290px,32%) minmax(0,1fr);height:calc(100dvh - 49px);min-height:520px}
.wa-module .chat-sidebar{background:#fff;border-color:#e9edef}
.wa-list-head{height:88px;padding:18px 22px 12px;display:flex;justify-content:space-between;align-items:center}
.wa-list-head h1{font-size:25px;letter-spacing:-.7px;color:#178c51;font-weight:700}
.wa-account{font-size:11px;color:#667781;text-decoration:underline;text-underline-offset:3px}
.wa-refresh{width:38px;height:38px;display:grid;place-items:center;background:#f0f2f5;border-radius:50%;font-size:24px;color:#54656f}
.wa-refresh:hover{background:#d9fdd3}
.wa-module .search{display:flex;align-items:center;gap:8px;padding:0 18px 12px;border:0}
.wa-module .search input:not([type=hidden]){background:#f0f2f5;border:0;border-radius:24px;padding:11px 17px;min-width:0;color:#111b21}
.wa-module .search button{width:auto;margin:0;border:0;border-radius:22px;background:#f0f2f5;min-height:40px;padding:0 12px}
.wa-filters{display:flex;gap:8px;padding:0 18px 14px;border-bottom:1px solid #f2f4f5}
.wa-filters a{border:1px solid #e9edef;border-radius:20px;padding:5px 14px;font-size:12px;color:#54656f}
.wa-filters a:hover{background:#f0f2f5}.wa-filters a.active{background:#d9fdd3;color:#176b50;border-color:#d9fdd3}
.wa-module .chat-link{padding:13px 16px;gap:13px;min-height:78px;border:0;margin:0 8px;border-radius:10px}
.wa-module .chat-link:hover{background:#f5f6f6}.wa-module .chat-link.selected{background:#f0f2f5;border:0;padding-left:16px}
.wa-module .avatar{width:43px;height:43px;border-radius:50%;background:#dfe9e4;color:#567267;font-size:16px;font-weight:500}
.chat-copy{flex:1;min-width:0}.chat-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.wa-module .chat-name{font-size:14px;font-weight:500;max-width:none;flex:1;color:#111b21}
.chat-line time{font-size:10px;color:#667781;white-space:nowrap}
.chat-snippet{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;color:#667781;margin-top:4px}
.wa-module .conversation{background:#efeae2;background-image:radial-gradient(#d6cfc350 .8px,transparent .8px);background-size:18px 18px}
.wa-module .conversation-header{height:74px;padding:12px 24px;flex-shrink:0;background:#fff;border:0}
.wa-module .conversation-header h2{font-size:15px;font-weight:550}.wa-module .conversation-header p{font-size:11px;color:#667781}
.wa-connection{margin-left:auto;color:#54656f;font-size:12px;padding:8px;border-radius:6px}.wa-connection:hover{background:#f0f2f5}
.wa-module .messages{padding:24px clamp(20px,5vw,80px);gap:8px;min-height:0;scroll-behavior:smooth}
.wa-module .message{border:0;border-radius:0 9px 9px 9px;padding:8px 10px 6px;max-width:78%;box-shadow:0 1px 1px #0b141a20;min-width:100px;background:#fff}
.wa-module .message.outgoing{background:#d9fdd3;border-radius:9px 0 9px 9px}
.wa-module .message-body{font-size:14px;line-height:1.55;color:#111b21}
.wa-module .message-author{font-size:11px;color:#168b63;margin-bottom:3px}
.wa-module .message time{font-size:10px;color:#667781;margin-top:4px}
.wa-module .attachment{background:#f0f2f590;border:0;padding:12px;border-radius:7px;color:#54656f}
.wa-module .attachment button{border:0;background:#fff;font-size:12px;margin-top:5px}
.wa-module .conversation>.empty{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f7f9fa}
.wa-module .empty-symbol{background:#e9edef;border-radius:50%;color:#667781}
.wa-module .empty h2{font-size:24px;font-weight:400;color:#41525d}.wa-module .empty p{font-size:13px;color:#667781}
.wa-module .composer{background:#f0f2f5;border:0;padding:10px 18px;flex-shrink:0;color:#667781;max-height:50%;overflow:auto}
.wa-module [data-text-composer]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;border:0;margin:0;padding:0;max-height:none;overflow:visible;align-items:center}
.wa-module .composer-recipient{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wa-module [data-text-composer]>label{margin:0;grid-column:1;grid-row:1}
.wa-module [data-text-composer] textarea{border:0;background:#fff;border-radius:24px;padding:13px 18px;font-size:14px;line-height:22px;min-height:48px;max-height:160px;resize:vertical;color:#111b21}
.wa-module [data-text-composer]>.actions{grid-column:2;grid-row:1;gap:6px;max-width:230px}
.wa-module [data-text-composer] button{border-radius:22px;background:#168c52;color:white;border:0;min-height:44px;padding:10px 16px}
.wa-module [data-text-composer] [data-text-preview],.wa-module [data-text-composer]>[role=status]{grid-column:1/-1;margin:0}
.wa-module [data-text-composer]>[role=status]:empty{display:none}
.wa-module .text-preview{background:#d9fdd3;color:#111b21}
.wa-module .composer details{margin-top:7px}.wa-module .composer summary{font-size:12px;color:#54656f;padding:3px 0}
.wa-module .composer details[open]{background:white;border-radius:10px;padding:12px;margin-top:10px}
.wa-module .composer details form{max-height:240px;padding-top:4px}
@media(max-width:1100px){body:has(.wa-module) .sidebar{width:164px}.wa-module .inbox{grid-template-columns:290px minmax(0,1fr)}.wa-module .messages{padding:18px}.wa-module [data-text-composer]>.actions{max-width:130px}}
@media(max-width:700px){body:has(.wa-module) .sidebar{width:100%;height:auto;padding:10px 14px;gap:8px}body:has(.wa-module) .brand{font-size:18px}body:has(.wa-module) .brand-mark{width:26px;height:26px;font-size:16px}body:has(.wa-module) .topbar{display:none}body:has(.wa-module) .main{padding:0}.wa-module .inbox{display:block;height:calc(100dvh - 100px);min-height:480px}.wa-module .inbox.has-chat .conversation{display:flex}.wa-module .conversation-header{height:65px;padding:10px 14px}.wa-module .messages{padding:14px;gap:8px}.wa-module .message{max-width:90%}.wa-module .composer{padding:8px 10px}.wa-module [data-text-composer]>.actions{max-width:110px}.wa-module [data-text-composer] button{padding:9px 12px;font-size:11px}.wa-module .wa-connection{font-size:11px}.wa-module .chat-name{max-width:none}}
.wa-module .search button{flex-shrink:0;white-space:nowrap}
/* Inline media and company-scoped message actions */
.inline-media-preview img{display:block;max-width:100%;width:320px;height:auto;max-height:360px;object-fit:contain;border-radius:8px}.inline-media-preview iframe{width:100%;height:320px;border:0}.message-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.message-actions button{font-size:12px;padding:4px 8px}.assignment-label{font-size:12px;color:#176b54;margin:6px 0}#message-action-dialog{width:min(560px,90vw);border:0;border-radius:12px;padding:24px}#message-action-dialog header{display:flex;justify-content:space-between}#message-action-dialog label{display:block;margin:12px 0}#message-action-dialog [hidden]{display:none}#message-action-dialog textarea,#message-action-dialog select{width:100%}#message-action-dialog pre,#message-action-dialog blockquote{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}

/* Keep message actions in a compact, keyboard-accessible bubble menu. */
.wa-module .message:has(.message-menu){position:relative;padding-right:36px}
.message-menu{position:absolute;right:4px;top:4px;z-index:1}
.message-menu[open]{z-index:20}
.message-menu summary{list-style:none;cursor:pointer;width:28px;height:28px;display:grid;place-items:center;border-radius:6px;color:#667781;font-size:20px;line-height:1}
.message-menu summary::-webkit-details-marker{display:none}
.message-menu summary:hover,.message-menu[open] summary{background:#dce7df}
.message-menu summary:focus-visible{outline:3px solid #80b6a2;outline-offset:2px}
.message-menu .message-actions{position:absolute;right:0;top:27px;display:flex;flex-direction:column;gap:0;margin:0;padding:5px;background:#fff;border:1px solid #e3eae6;border-radius:8px;box-shadow:0 4px 16px #0b141a26;min-width:132px}
.message-menu:not([open]) .message-actions{display:none}
.message-menu .message-actions button{border:0;justify-content:flex-start;white-space:nowrap;font-size:14px;padding:8px 14px;min-height:40px}
.wa-module .message:last-child .message-menu[open] .message-actions{top:auto;bottom:29px}

.chat-assignment{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid #e3eae6;background:white}.chat-assignment label{display:flex;align-items:center;gap:10px}.chat-assignment select{max-width:260px;padding:8px;border:1px solid #dce5df;border-radius:6px;font:inherit}.chat-assignment [role=status]{font-size:12px;color:#176b50}

.contact-history{width:100%;border-collapse:collapse;min-width:850px}.contact-history th,.contact-history td{text-align:left;padding:16px;vertical-align:top;border-bottom:1px solid #e3eae6}.contact-history th{background:#f0f5f2;color:#52665a}.contact-history td:nth-child(4){max-width:350px}.contact-history small{color:#73827a}.contact-history summary{cursor:pointer;color:#176b50}
