/* Visual contract: original WhatsApp-specific screen, with real data only. */
.account-menu[hidden]{display:none}
:root{--blue:#3f73e6;--page:#f4f7fb;--line:#e4e9f1;--text:#17212b;--muted:#8792a4;--sidebar:#1d2a42}
body{min-width:0;color:var(--text);background:var(--page);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif}.app-shell{grid-template-columns:250px minmax(0,1fr);background:var(--page)}
.nav{display:flex;flex-direction:column;padding:18px 14px 14px;border-right:1px solid #e1e7f0;background:#fff;overflow:hidden}.brand{min-height:58px;gap:10px;padding:0 14px 15px;border-bottom:1px solid #edf0f5}.brand-logo{width:40px;height:40px;object-fit:contain}.brand strong{font-size:16px;line-height:1.2;color:#1d2a42}.brand small{margin-top:4px;font-size:9px;letter-spacing:.13em;color:#8190a8}.workspace-switch{margin:16px 0 14px;padding:11px 12px;border-color:#e0e8f3;border-radius:11px;background:#f4f7fd}.workspace-switch span{font-size:11px}.workspace-switch strong{margin-top:4px;font-size:12px}.workspace-switch b{right:12px;bottom:12px;font-size:16px}.nav nav{gap:0;overflow:auto}.nav-group{margin:8px 12px 5px;color:#9ba7b9;font-size:11px}.nav a{min-height:41px;gap:12px;padding:0 12px;border-radius:10px;font-size:14px;color:#5f718e}.nav a svg{width:18px;height:18px;color:#61738f}.nav a.active{color:#3972df;background:#eaf0ff}.sidebar-ai{display:flex;gap:8px;align-items:flex-start;margin:14px 3px 0;padding:10px;color:#687995;border-top:1px solid #edf1f6;font-size:10px}.sidebar-ai svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}.sidebar-ai strong,.sidebar-ai span{display:block}.sidebar-ai strong{font-size:11px;color:#4f6280}.sidebar-ai span{margin-top:3px}
.workspace{grid-template-rows:58px minmax(0,1fr)}.topbar{gap:12px;padding:0 25px;border-bottom:1px solid #e5eaf2}.global-search{width:340px;height:36px;gap:8px;padding:0 11px;border-color:#e2e8f1;border-radius:9px;background:#f8fafc}.global-search svg{width:17px;height:17px}.global-search input{font-size:12px}.global-search kbd{padding:3px 6px;font-size:10px}.top-actions{gap:7px}.top-actions button{min-height:34px;padding:0 11px;border-radius:8px;font-size:12px}.top-actions button:first-child{color:#3972df;border-color:#c8d9ff;background:#f5f8ff}.notification{border:0;background:transparent;color:#58708f}.notification:disabled{opacity:1;color:#ff625f}.user-chip{gap:8px}.user-chip span{width:34px;height:34px;border-radius:10px;font-size:15px}.user-chip b{font-size:12px}
.communication-page{grid-template-rows:58px 110px minmax(0,1fr);gap:10px;padding:18px 22px 22px}.channel-tabs{padding:0 18px;border-color:var(--line);border-radius:13px 13px 0 0;gap:7px}.channel-tabs button{gap:8px;padding:0 15px;font-size:13px}.channel-tabs button.selected{border-color:#3f73e6;box-shadow:inset 0 -3px #3f73e6}.channel-tabs i{width:28px;height:28px;border-radius:8px;font-size:18px}.channel-tabs img{width:29px;height:29px}.channel-tabs small{font-size:10px}
.accountbar{display:flex;align-items:center;gap:18px;padding:13px 20px;border:0;border-radius:0;background:#fff}.account-select-card{display:flex;align-items:center;gap:11px;min-width:405px;height:82px;padding:10px 14px;border:1px solid #ceddf5;border-radius:15px;background:#f6f9ff}.account-avatar{width:48px;height:48px;border-radius:50%;background:#eaf1ff}.account-avatar img{width:34px;height:34px;background:transparent}.account-select-card label{display:grid;gap:3px;min-width:0;color:#687b99;font-size:11px}.account-select-card select{max-width:270px;padding:0;border:0;outline:0;background:transparent;color:#283955;font-size:16px;font-weight:750}.account-select-card small{color:#8b9ab1;font-size:11px}.account-chevron{margin-left:auto;color:#344d72;font-size:23px}.status{padding:7px 0;background:transparent;color:#a7792d;font-size:13px}.status span{width:10px;height:10px;background:#d1a04c}.account-add{display:grid;place-items:center;width:56px;height:56px;border:1px solid #d9e3f2;border-radius:50%;background:#fff;color:#3f73e6;font-size:35px;font-weight:300}.account-add:disabled{opacity:1}.accountbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.manage-account{min-height:40px;padding:0 13px;border-radius:9px;font-size:12px}.connect-preview{display:flex;align-items:center;gap:8px;min-height:58px;padding:0 20px;border:0;border-radius:14px;background:#3974e9;color:#fff;font-size:14px;font-weight:750;white-space:nowrap}.connect-preview img{width:27px;height:27px}.connect-preview:disabled{opacity:.56}.has-accounts .communication-page{grid-template-rows:58px 110px minmax(0,1fr)}
.columns{grid-template-columns:minmax(229px,21.4%) minmax(450px,53.6%) minmax(268px,25%);border-color:var(--line);border-radius:0 0 10px 10px}.pane{background:#fff}.conversation-pane,.chat-pane{border-right-color:var(--line)}.conversation-filter-head{padding:13px 11px 0;border-bottom:1px solid #eef1f5}.conversation-search{height:44px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #dfe5ef;border-radius:13px;background:#f7f9fc;color:#63738e}.conversation-search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}.conversation-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:12px}.conversation-filter-pills{display:flex;gap:7px;padding-top:10px}.conversation-filter-pills button,.conversation-filter-tabs button{border:0;background:transparent;color:#79869a;font-size:11px}.conversation-filter-pills button{padding:8px 10px;border-radius:10px;background:#f4f6fa}.conversation-filter-pills button.selected{color:#3872df;background:#eaf0ff}.conversation-filter-pills button:disabled,.conversation-filter-tabs button:disabled{opacity:1;color:#98a4b7}.conversation-filter-tabs{display:flex;gap:18px;padding:13px 8px 9px}.conversation-filter-tabs button{padding:0 0 9px}.conversation-filter-tabs button.selected{color:#3670dd;border-bottom:2px solid #3670dd;font-weight:700}.filters,.pane-head{display:none}.empty{min-height:180px;gap:7px;padding:24px 18px}.empty strong{font-size:14px}.empty span{font-size:12px}
.chat-pane{grid-template-rows:73px minmax(0,1fr) 113px}.chat-head{min-height:73px;gap:10px;padding:0 14px}.chat-channel-mark{width:42px;height:42px;font-size:19px}.chat-head h2{font-size:14px}.chat-head span{font-size:11px}.chat-actions{display:flex;gap:6px;margin-left:auto}.chat-actions button{height:34px;padding:0 9px;border:1px solid #e0e6ef;border-radius:8px;background:#fff;color:#4c6082;font-size:11px}.chat-actions button:last-child{border-color:#d4e0ff;background:#edf3ff;color:#4678df}.message-empty{min-height:150px;gap:6px;padding:22px}.message-empty strong{font-size:14px}.message-empty p{font-size:12px}.composer{display:grid;grid-template-columns:1fr;gap:6px;padding:10px 12px;border:1px solid #dfe4ec;border-radius:10px;margin:0 14px 13px}.composer textarea{min-height:48px;padding:5px;border:0;background:transparent;font-size:12px}.composer-tools{display:flex;align-items:center;gap:10px}.composer-tools button{border:0;background:transparent;color:#63738e;font-size:11px}.composer-tools button:last-child{margin-left:auto;min-width:86px;height:39px;border-radius:8px;background:#9ebcf5;color:#fff;font-weight:700}.composer-tools button:disabled{opacity:1}
.tabs{min-height:54px;padding:0 14px;gap:8px}.tabs button{padding:7px 9px;font-size:13px}.detail-pane section{padding:15px 14px;border-bottom-color:#edf1f6}.section-title h3{font-size:14px}.section-title button{font-size:11px}.empty-card{margin-top:10px;padding:12px;border-radius:9px;font-size:11px}.customer-details,.record-list{font-size:12px}.record{padding:8px}
@media(max-width:900px){.app-shell{display:block}.nav{position:fixed;z-index:30;inset:0 auto 0 0;width:250px;transform:translateX(-100%);transition:transform .18s ease;box-shadow:12px 0 30px #20345c28}.nav-open .nav{transform:translateX(0)}.drawer-close,.menu-button{display:grid;place-items:center}.menu-button{width:34px;height:34px}.workspace{height:100vh;grid-template-rows:58px minmax(0,1fr)}.topbar{padding:0 14px}.global-search{width:250px}.top-actions,.notification,.user-chip b,.sidebar-ai{display:none}.communication-page{grid-template-rows:58px minmax(430px,1fr);padding:12px;overflow:auto}.channel-tabs{padding:0 10px;overflow-x:auto}.channel-tabs button{padding:0 12px}.channel-tabs button:not(.selected):not(:first-child){display:none}.columns{min-width:1030px}.has-accounts .communication-page{grid-template-rows:58px 54px minmax(430px,1fr)}}
