:root{--navy:#101b2d;--navy2:#17263d;--ink:#1e293b;--muted:#8490a2;--line:#e8edf3;--bg:#f4f6fa;--blue:#3768e8;--blue2:#edf2ff;--green:#1a9b70;--red:#d34f58;--amber:#bd8427;--shadow:0 8px 28px rgba(24,39,65,.06);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}.muted{color:var(--muted);font-size:12px;margin:5px 0 0}.error{color:var(--red);min-height:18px;font-size:12px}.login-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 15% 20%,#263c60 0,#101b2d 45%,#0b1422 100%)}.login-card{width:min(420px,calc(100% - 32px));background:white;border-radius:20px;padding:42px;box-shadow:0 24px 80px #07101f66}.brand-mark{width:48px;height:48px;display:grid;place-items:center;background:linear-gradient(135deg,#4d7bff,#3154cb);color:white;font-weight:800;font-size:17px;border-radius:14px;box-shadow:0 8px 20px #3768e844}.brand-mark.small{width:36px;height:36px;border-radius:11px;font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#8a96a9;margin:22px 0 8px}.login-card h1{font-size:26px;margin:0}.login-card label,.section-card label{display:block;font-size:12px;color:#596579;margin:18px 0 7px}.login-card input,.section-card input,.section-card textarea,.section-card select{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:9px;outline:none;color:var(--ink);background:#fff}.login-card input:focus,.section-card input:focus,.section-card textarea:focus,textarea:focus{border-color:#8da8ff;box-shadow:0 0 0 3px #3768e812}.primary,.secondary,.quiet{border-radius:9px;padding:10px 15px;font-weight:600;font-size:12px;transition:.15s}.primary{background:var(--blue);color:white}.primary:hover{background:#2856d2}.secondary{background:var(--blue2);color:var(--blue)}.quiet{background:#f4f6f9;color:#566174}.full{width:100%;margin-top:20px;padding:13px}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--navy);color:#d8e0ed;padding:24px 16px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:11px;align-items:center;padding:0 7px 29px}.brand b{display:block;font-size:13px;color:white}.brand small{display:block;font-size:9px;letter-spacing:1.3px;color:#71829b;margin-top:4px}.workspace-label{font-size:10px;letter-spacing:1.2px;color:#71829b;padding:0 10px 12px}.sidebar nav{display:grid;gap:5px}.nav-item{height:43px;text-align:left;padding:0 12px;border-radius:9px;color:#9cabc0;background:transparent;font-size:12px}.nav-item span{display:inline-block;width:27px;font-size:15px}.nav-item:hover,.nav-item.active{background:#22334d;color:#fff}.sidebar-bottom{margin-top:auto}.connection-indicator{font-size:10px;color:#8292a9;padding:15px 10px;border-bottom:1px solid #29384d}.connection-indicator i{display:inline-block;width:7px;height:7px;background:#39c995;border-radius:50%;margin-right:7px}.user-chip{display:flex;align-items:center;gap:9px;padding:15px 5px 0}.avatar,.contact-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dce6ff;color:#355bc1;font-weight:700}.user-meta{min-width:0;flex:1}.user-meta b,.user-meta small{display:block}.user-meta b{font-size:11px;color:white}.user-meta small{font-size:10px;color:#8292a9;margin-top:3px}.user-chip button{color:#8c9bb0;background:none;font-size:18px}.main-area{margin-left:238px;min-height:100vh}.topbar{height:86px;background:#fff;border-bottom:1px solid var(--line);padding:17px 27px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:10px;color:#9aa4b3}.breadcrumb span{padding:0 8px;color:#c4cbd5}.breadcrumb b{color:#68758a;font-weight:500}.page-heading{font-size:19px;font-weight:700;margin-top:6px}.top-actions{display:flex;align-items:center;gap:15px}.today-label{font-size:11px;color:#8792a3}.icon-btn{width:34px;height:34px;border:1px solid var(--line);background:white;border-radius:9px;color:#64748b;font-size:19px}.page{display:none;padding:22px 24px}.page.active{display:block}.inbox-layout{display:grid;grid-template-columns:minmax(260px,300px) minmax(360px,1fr) minmax(220px,255px);gap:14px;height:calc(100vh - 130px);min-height:580px}.panel,.section-card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.conversation-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}.panel-heading{padding:17px 17px 13px;display:flex;align-items:center;justify-content:space-between}.panel-heading h2,.panel-heading h3{font-size:14px;margin:0}.panel-heading h3{font-size:13px}.count-pill{background:#eef2fa;color:#68758a;border-radius:20px;padding:4px 9px;font-size:10px}.search-wrap{margin:0 13px;display:flex;align-items:center;gap:8px;background:#f5f7fa;border-radius:8px;padding:0 10px;color:#9aa5b5}.search-wrap input{border:0;background:transparent;outline:0;width:100%;padding:10px 0;font-size:11px}.filter-row{display:flex;gap:7px;padding:10px 13px;border-bottom:1px solid var(--line)}.filter-row select{min-width:0;flex:1;border:1px solid var(--line);background:white;border-radius:7px;padding:7px;font-size:10px;color:#68758a}.text-btn{background:transparent;color:#6e7c91;font-size:11px;padding:6px}.conversation-list{overflow:auto;flex:1}.conversation-item{padding:13px 14px;border-bottom:1px solid #f0f2f6;display:grid;grid-template-columns:34px 1fr;gap:9px;cursor:pointer}.conversation-item:hover,.conversation-item.selected{background:#f4f7ff}.conversation-item.selected{border-left:3px solid var(--blue);padding-left:11px}.conversation-item .avatar{width:32px;height:32px;font-size:11px}.conv-top{display:flex;justify-content:space-between;gap:5px}.conv-top b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-top time{font-size:9px;color:#a0aaba;white-space:nowrap}.conv-preview{font-size:10px;color:#8b96a7;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-tags{display:flex;gap:5px;margin-top:7px}.tag{font-size:9px;padding:3px 6px;border-radius:5px;background:#f0f2f6;color:#728096}.tag.blue{background:#edf2ff;color:#4266c5}.tag.green{background:#e8f7f1;color:#218b68}.older-toggle{border-top:1px solid var(--line);padding:8px;text-align:center}.older-toggle button{background:transparent;color:#7d899c;font-size:10px}.chat-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}.chat-empty{margin:auto;text-align:center;color:#8490a2}.empty-icon{margin:auto auto 15px;width:56px;height:56px;border-radius:18px;background:#eef2fb;color:#5574ce;display:grid;place-items:center;font-size:24px}.chat-empty h3{color:#4a566a;font-size:14px}.chat-empty p{font-size:11px}.chat-content{display:flex;flex-direction:column;min-height:0;height:100%}.chat-header{display:flex;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);gap:10px}.contact-avatar{width:37px;height:37px}.contact-info{flex:1;min-width:0}.contact-info h2{font-size:13px;margin:0}.contact-info p{font-size:10px;color:#8d99a9;margin:4px 0 0}.chat-header-actions{display:flex;gap:6px;align-items:center}.chat-header-actions select{max-width:120px;border:1px solid var(--line);border-radius:7px;padding:7px;font-size:10px}.chat-header-actions button{padding:8px 9px;font-size:10px}.chat-body{flex:1;overflow:auto;background:#f8f9fc;padding:18px;display:flex;flex-direction:column;gap:12px}.message{max-width:78%;padding:10px 12px;border-radius:11px;background:white;box-shadow:0 2px 8px #17263d0a;align-self:flex-start}.message.outbound{align-self:flex-end;background:#eaf0ff}.message .message-text{font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.message-meta{font-size:9px;color:#9aa5b4;margin-top:5px;text-align:right}.message .delivery{margin-left:5px;color:#6684d7}.ai-toolbar{display:flex;justify-content:space-between;align-items:center;padding:11px 15px 8px;border-top:1px solid var(--line)}.ai-toolbar b{font-size:11px;display:block}.ai-toolbar small{font-size:9px;color:#96a1b0;display:block;margin-top:3px}.toolbar-actions{display:flex;gap:5px}.toolbar-actions button{font-size:10px;padding:8px}.draft-preview{margin:0 13px 8px;padding:10px;background:#f7f9ff;border:1px solid #e1e8ff;border-radius:9px}.draft-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin-bottom:7px}.draft-preview textarea,.composer textarea,.inline-panel textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:9px;outline:0;font-size:11px;line-height:1.5}.draft-actions{display:flex;justify-content:flex-end;gap:5px;margin-top:6px}.draft-actions button{padding:7px 10px;font-size:10px}.composer{padding:0 13px 9px}.composer textarea{min-height:50px;max-height:110px}.composer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:6px}.composer-bottom span{font-size:9px}.composer-bottom button{padding:9px 14px;font-size:10px}.chat-footer{display:flex;gap:12px;border-top:1px solid var(--line);padding:5px 13px}.chat-footer button{font-size:10px}.insight-panel{display:flex;flex-direction:column;gap:12px;overflow:auto}.insight-card{padding-bottom:12px}.spark{color:#6b88e2;font-size:20px}.info-row{display:flex;justify-content:space-between;padding:8px 16px;font-size:10px;color:#8b96a7}.info-row b{color:#4b596e;font-weight:600;max-width:130px;overflow:hidden;text-overflow:ellipsis}.quick-action{display:block;width:calc(100% - 28px);margin:3px 14px;text-align:left;background:#f8f9fb;padding:10px;border-radius:7px;color:#5f6c80;font-size:10px}.quick-action span{float:right}.safety-note{display:flex;gap:9px;padding:12px;background:#eef3ff;border-radius:10px;color:#5270bd;font-size:10px;line-height:1.5}.safety-note p{margin:0}.empty-state{text-align:center;color:#a1aaba;font-size:11px;padding:35px 10px}.section-card{padding:22px;margin-bottom:15px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title h2{font-size:16px;margin:0}.section-title p{font-size:11px}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.account-card{border:1px solid var(--line);border-radius:11px;padding:16px}.account-head{display:flex;justify-content:space-between;align-items:center}.account-head b{font-size:13px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#9ca3af;margin-right:6px}.status-dot.connected{background:#1fa779}.account-meta{font-size:10px;color:#8793a4;line-height:1.9;margin:12px 0}.account-actions{display:flex;gap:6px;flex-wrap:wrap}.account-actions button{font-size:10px;padding:7px 10px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-grid .section-card{margin:0}.settings-grid label{margin:12px 0}.settings-grid textarea{resize:vertical}.switch-line{display:flex!important;align-items:center;justify-content:space-between}.switch-line input{width:auto!important}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:11px}.data-table th,.data-table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.data-table th{color:#8995a6;font-weight:500}.modal{position:fixed;inset:0;background:#0c1728a6;display:grid;place-items:center;z-index:20;padding:20px}.modal-card{position:relative;background:#fff;border-radius:15px;padding:26px;width:min(480px,100%);max-height:90vh;overflow:auto;box-shadow:0 25px 80px #0004}.modal-card h2{font-size:17px;margin:0 0 8px}.modal-close{position:absolute;right:14px;top:12px;background:transparent;color:#8792a2;font-size:23px}.modal-card label{display:block;font-size:11px;color:#69768a;margin:14px 0}.modal-card input,.modal-card select,.modal-card textarea{display:block;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;margin-top:6px}.modal-card .primary{margin-top:10px}.toast{position:fixed;bottom:24px;right:24px;z-index:30;background:#17263d;color:#fff;padding:11px 16px;border-radius:9px;font-size:11px;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}.inline-panel{padding:10px 14px;border-top:1px solid var(--line);max-height:180px;overflow:auto}.inline-panel button{margin-top:6px}.inline-panel .list-entry{font-size:10px;padding:7px;border-bottom:1px solid #f0f2f6;color:#64748b}.qr-image{display:block;max-width:250px;width:100%;margin:15px auto}.tag.pending{background:#fff5e5;color:#ae7b2d}
@media(max-width:1250px){.inbox-layout{grid-template-columns:270px minmax(340px,1fr)}.insight-panel{display:none}}@media(max-width:850px){.sidebar{width:66px;padding:17px 8px}.brand{padding:0 7px 25px}.brand>div:last-child,.workspace-label,.nav-item:not(.active){display:none}.nav-item{font-size:0;text-align:center;padding:0}.nav-item span{font-size:18px;width:auto}.sidebar-bottom .user-meta,.connection-indicator{display:none}.main-area{margin-left:66px}.inbox-layout{grid-template-columns:220px minmax(300px,1fr);height:auto;min-height:calc(100vh - 130px)}.chat-panel{min-height:650px}.page{padding:14px}.topbar{padding:15px}.today-label{display:none}}@media(max-width:600px){.sidebar{width:54px}.main-area{margin-left:54px}.inbox-layout{display:flex;flex-direction:column;height:auto}.conversation-panel{height:260px;flex:none}.chat-panel{min-height:670px}.chat-header{flex-wrap:wrap}.chat-header-actions{width:100%;justify-content:flex-end}.settings-grid{grid-template-columns:1fr}.page-heading{font-size:16px}.section-card{padding:15px}.login-card{padding:30px 24px}}
.group-title{padding:9px 14px 5px;font-size:9px;letter-spacing:.3px;color:#9aa5b4;background:#fbfcfe}.account-card label{display:block;color:#8995a6;font-size:10px;margin:8px 0}.account-card select{display:block;width:100%;margin-top:5px;border:1px solid var(--line);border-radius:7px;padding:7px;color:#566174;font-size:10px;background:white}

/* Alpha10.8 Build57 — responsive admin workspace refresh */
:root{--navy:#101b31;--navy2:#1b2b48;--ink:#18243a;--muted:#7b879a;--line:#e7ecf4;--bg:#f3f6fb;--blue:#4169e8;--blue2:#edf2ff;--shadow:0 10px 30px rgba(27,43,72,.055);--radius:16px}
body{font-size:14px;background:linear-gradient(180deg,#f7f9fd 0,#f2f5fa 100%)}
.sidebar{width:252px;padding:25px 17px 18px;background:linear-gradient(180deg,#111d33 0%,#172844 100%);box-shadow:8px 0 30px rgba(18,31,53,.08)}
.brand{padding:0 8px 34px}.brand-mark{background:linear-gradient(145deg,#6b8cff,#3e5fd2);box-shadow:0 9px 22px #5576ed55}.workspace-label{font-weight:700;letter-spacing:1.5px;padding-bottom:13px}
.nav-item{height:46px;border-radius:11px;font-size:12px;transition:background .18s,color .18s,transform .18s}.nav-item span{width:29px;color:#91a7d1}.nav-item:hover{transform:translateX(2px)}.nav-item.active{background:linear-gradient(90deg,#3556a2,#273d68);box-shadow:inset 3px 0 #8eabff;color:#fff}.nav-item.active span{color:#d9e4ff}
.connection-indicator{border-color:#30415d}.connection-indicator i{box-shadow:0 0 0 4px #39c99520}.user-chip{padding-top:18px}.avatar{background:linear-gradient(145deg,#e7edff,#cddaff);color:#3556bd}
.main-area{margin-left:252px}.topbar{height:90px;padding:17px 30px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);position:sticky;top:0;z-index:4}.topbar-title{display:flex;align-items:center;gap:13px}.page-heading{font-size:21px;letter-spacing:-.35px}.breadcrumb{font-size:10px;letter-spacing:.25px}.today-label{font-size:11px;background:#f5f7fb;padding:8px 12px;border-radius:9px}.icon-btn{width:38px;height:38px;border-radius:11px;transition:.18s}.icon-btn:hover{background:#edf2ff;color:var(--blue);border-color:#dce5ff}
.page{padding:25px 30px 32px}.panel,.section-card{border:1px solid #e8edf5;border-radius:var(--radius);box-shadow:0 5px 22px rgba(26,44,78,.045)}.panel-heading{padding:19px 19px 14px}.panel-heading h2,.panel-heading h3{font-size:14px;letter-spacing:-.1px}.muted{color:#8a96a8}.section-card{padding:25px;margin-bottom:18px}.section-title{margin-bottom:22px}.section-title h2{font-size:17px;letter-spacing:-.25px}.section-title p{font-size:12px}.primary,.secondary,.quiet{border-radius:10px;padding:10px 15px;font-size:12px;transition:transform .16s,box-shadow .16s,background .16s}.primary{background:linear-gradient(135deg,#4d75f0,#355bd7);box-shadow:0 5px 12px #4169e822}.primary:hover{background:linear-gradient(135deg,#4169e8,#2e51ca);transform:translateY(-1px);box-shadow:0 8px 18px #4169e833}.secondary{background:#edf2ff;color:#3f62d3}.secondary:hover{background:#e2eaff}.quiet{background:#f5f7fb;color:#637087}
.inbox-layout{grid-template-columns:minmax(270px,310px) minmax(390px,1fr) minmax(225px,265px);gap:16px;height:calc(100dvh - 137px);min-height:610px}.conversation-panel,.chat-panel{border-radius:16px}.conversation-item{padding:14px 15px;transition:background .15s}.conversation-item:hover{background:#f7f9ff}.conversation-item.selected{background:#f0f4ff;border-left-width:3px}.search-wrap{background:#f6f8fc;border:1px solid #edf0f6}.filter-row{padding-top:11px}.chat-header{padding:15px 18px}.chat-body{background:radial-gradient(circle at 15% 10%,#f1f5ff 0,#f8faff 45%,#f5f7fb 100%);padding:22px}.message{border:1px solid #edf0f5;border-radius:13px;padding:11px 14px;max-width:min(78%,620px)}.message.outbound{background:#eaf0ff;border-color:#dce6ff}.ai-toolbar{padding:13px 17px 9px}.draft-preview{margin:0 15px 9px;border-radius:12px;padding:12px}.composer{padding:0 15px 11px}.composer textarea,.draft-preview textarea,.inline-panel textarea{border-color:#e4e9f2;border-radius:11px;padding:11px}.insight-panel{gap:14px}.insight-card{padding-bottom:13px}.quick-action{border:1px solid #eef1f6;background:#fafbfe;border-radius:9px;padding:11px 12px;transition:.15s}.quick-action:hover{background:#f0f4ff;color:#3f62d3}.safety-note{border:1px solid #e2eaff;border-radius:12px;padding:13px}
.settings-grid{gap:17px}.settings-grid .section-card{padding:23px;position:relative;overflow:hidden}.settings-grid .section-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#5278ed,#a9bcff);opacity:.8}.settings-grid label{font-size:12px;color:#66738a}.section-card input,.section-card textarea,.section-card select{border-color:#e4e9f2;border-radius:10px;padding:11px 12px}.section-card input:focus,.section-card textarea:focus,.section-card select:focus,.modal-card input:focus,.modal-card select:focus,.modal-card textarea:focus{outline:0;border-color:#9db3ff;box-shadow:0 0 0 3px #4169e815}.cards-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr));gap:15px}.account-card{border-color:#e9edf5;border-radius:14px;padding:19px;box-shadow:0 4px 14px #1b2b4808;transition:transform .18s,box-shadow .18s}.account-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #1b2b4812}.account-head b{font-size:14px}.data-table{font-size:12px}.data-table th{background:#f8faff;color:#75829a;font-weight:700}.data-table th,.data-table td{padding:14px 13px}.data-table tbody tr:hover{background:#fafbff}.table-wrap{border:1px solid #edf0f5;border-radius:12px}.modal-card{border-radius:18px;padding:30px;box-shadow:0 28px 90px #08132655}.toast{border-radius:12px;padding:12px 17px;box-shadow:0 12px 30px #0b172b30}
.menu-toggle,.mobile-back,.sidebar-scrim{display:none}
@media(max-width:1390px){.inbox-layout{grid-template-columns:minmax(250px,285px) minmax(370px,1fr)}.insight-panel{display:none}}
@media(max-width:1050px){.sidebar{width:218px}.main-area{margin-left:218px}.page{padding:20px}.inbox-layout{grid-template-columns:minmax(230px,280px) minmax(330px,1fr);gap:12px;height:calc(100dvh - 128px)}.chat-header{flex-wrap:wrap}.chat-header-actions{margin-left:auto}.settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){
  .sidebar{width:min(292px,84vw);padding:23px 17px 18px;transform:translateX(-105%);transition:transform .24s ease;z-index:31;box-shadow:20px 0 60px #09162c44}
  body.mobile-nav-open .sidebar{transform:translateX(0)}.sidebar-scrim{display:block;position:fixed;inset:0;background:#0a162b80;opacity:0;pointer-events:none;z-index:30;transition:opacity .2s}.mobile-nav-open .sidebar-scrim{opacity:1;pointer-events:auto}
  .brand>div:last-child,.workspace-label,.nav-item:not(.active){display:block}.nav-item{font-size:12px;text-align:left;padding:0 12px}.nav-item span{width:29px;font-size:15px}.sidebar-bottom .user-meta,.connection-indicator{display:block}.main-area{margin-left:0}.topbar{height:76px;padding:12px 15px;gap:8px}.topbar-title{gap:10px}.menu-toggle{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid #e7ecf4;border-radius:11px;background:#fff;color:#52627d;font-size:17px}.page-heading{font-size:17px;margin-top:4px}.breadcrumb{font-size:9px}.today-label{display:none}.top-actions{gap:7px}.icon-btn{width:36px;height:36px}.page{padding:14px 12px 24px}
  .inbox-layout{display:flex;flex-direction:column;height:auto;min-height:0;gap:0}.conversation-panel{height:calc(100dvh - 112px);min-height:420px;flex:none}.chat-panel{display:none;min-height:calc(100dvh - 92px);height:calc(100dvh - 92px);border-radius:14px}.mobile-chat-open .conversation-panel{display:none}.mobile-chat-open .chat-panel{display:flex}.mobile-back{display:inline-flex;align-items:center;justify-content:center;gap:3px;background:#f0f4ff;color:#4164d7;border-radius:9px;padding:8px 10px;font-size:11px;white-space:nowrap}.chat-header{gap:9px;padding:12px}.contact-avatar{width:34px;height:34px}.contact-info h2{font-size:12px}.chat-header-actions{width:100%;justify-content:flex-start;margin-left:0;flex-wrap:wrap}.chat-header-actions select{flex:1;max-width:none;min-width:100px}.chat-body{padding:14px 11px}.message{max-width:88%}.ai-toolbar{align-items:flex-start;gap:8px;flex-wrap:wrap;padding:11px}.toolbar-actions{margin-left:auto}.toolbar-actions button{padding:8px}.composer{padding:0 10px 9px}.composer-bottom span{max-width:55%;line-height:1.4}.chat-footer{gap:5px;justify-content:space-around;padding:6px 4px}.chat-footer button{font-size:10px}.settings-grid{grid-template-columns:1fr;gap:12px}.section-card{padding:17px;margin-bottom:12px}.settings-grid .section-card{padding:18px}.section-title{gap:10px;align-items:flex-start}.section-title .primary,.section-title .secondary{white-space:nowrap}.cards-grid{grid-template-columns:1fr}.data-table{min-width:560px}.modal{padding:12px;align-items:end}.modal-card{width:100%;max-height:88dvh;border-radius:18px 18px 12px 12px;padding:25px 19px}.toast{left:12px;right:12px;bottom:14px;text-align:center}
}
@media(max-width:390px){.page-heading{font-size:15px}.breadcrumb{display:none}.topbar{height:66px}.page{padding:10px 8px 18px}.panel-heading{padding:14px 13px 11px}.chat-header-actions button{font-size:9px;padding:8px}.toolbar-actions button{font-size:9px}.section-title h2{font-size:15px}.section-title{flex-wrap:wrap}.section-title .primary{padding:9px 11px}}
@media(min-width:761px) and (max-width:1050px){.chat-panel{min-height:calc(100dvh - 128px)}.conversation-panel{min-height:calc(100dvh - 128px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

@media (min-width:761px) and (max-width:850px){.brand>div:last-child,.workspace-label,.nav-item:not(.active){display:block}.nav-item{font-size:12px;text-align:left;padding:0 12px}.nav-item span{width:29px;font-size:15px}.sidebar-bottom .user-meta,.connection-indicator{display:block}}

/* Alpha10.8 Build58 — configurable AI service rules and knowledge workspace */
.service-config-card{grid-column:1/-1;min-width:0}.service-config-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.service-config-actions select{min-width:190px;max-width:260px}.service-config-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin-top:18px}.service-config-columns>div{min-width:0}.service-config-columns h3{font-size:14px;margin:0 0 10px;color:var(--ink)}.service-entry{min-width:0;overflow-wrap:anywhere}.service-entry-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.service-entry p{white-space:pre-wrap;line-height:1.55;margin:9px 0;color:var(--ink)}.service-trigger{margin-top:8px;color:var(--muted);font-size:12px}.service-entry-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.service-config-footnote{margin:16px 0 0;line-height:1.6}.danger-text{color:#c2413b!important}
@media(max-width:1050px){.service-config-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.service-config-actions{justify-content:flex-start}}
@media(max-width:760px){.service-config-columns{grid-template-columns:minmax(0,1fr);gap:18px}.service-config-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.service-config-actions select{grid-column:1/-1;width:100%;max-width:none}.service-config-actions button{width:100%}.service-config-card .section-title{align-items:flex-start;flex-direction:column}.service-entry-actions button{min-height:36px}}


/* Build59: internal AI conversation summary workspace */
.summary-panel{display:grid;gap:14px;border-color:var(--line-strong,#d8e0ea);background:var(--surface-soft,#f8fafc)}
.summary-panel-head,.summary-panel-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.summary-panel-head>div:first-child{display:grid;gap:3px}
.summary-panel-head small{font-size:12px;color:var(--muted,#718096)}
.summary-panel-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
.summary-panel label{display:grid;gap:6px;font-size:13px;font-weight:600}
.summary-panel textarea,.summary-panel input{width:100%;min-width:0}
.summary-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.summary-panel-foot{font-size:12px}
@media(max-width:760px){
  .summary-fields{grid-template-columns:minmax(0,1fr)}
  .summary-panel-head{align-items:flex-start}
  .summary-panel-head>div:last-child{width:100%}
  .summary-panel-head button{flex:1}
}


/* Build60: customer classification and target-customer CRM */
.customer-profile-card{margin-top:14px;min-width:0}
.customer-profile-form{display:grid;gap:10px}
.customer-profile-form label{display:grid;gap:5px;font-size:12px;font-weight:600;color:var(--ink)}
.customer-profile-form input,.customer-profile-form select,.customer-profile-form textarea{width:100%;min-width:0}
.customer-profile-form select[multiple]{min-height:96px;padding:7px}
.profile-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.profile-category-add{justify-self:start;padding:4px 0}
.customer-directory-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.customer-directory-actions select{min-width:150px}
#customerDirectory .data-table td{vertical-align:middle}
#customerDirectory .data-table small{color:var(--muted)}
@media(max-width:760px){
 .profile-two-col{grid-template-columns:minmax(0,1fr)}
 .customer-directory-actions{width:100%}
 .customer-directory-actions select{flex:1;min-width:0}
 .customer-directory-actions button{white-space:nowrap}
 .customer-profile-card{padding:14px}
}

/* Customer profile editor is a collapsible chat workspace panel so it remains available on tablets and phones. */
.customer-profile-panel{max-height:46dvh;overflow:auto;padding:12px 14px;background:#fff}
.customer-profile-panel .panel-heading{padding:2px 0 10px}
.customer-profile-form{display:grid;gap:9px}
.customer-profile-form label{display:grid;gap:5px;margin:0;font-size:12px;font-weight:600;color:var(--ink)}
.customer-profile-form input,.customer-profile-form select,.customer-profile-form textarea{width:100%;min-width:0;margin-top:0;padding:9px;border:1px solid var(--line);border-radius:8px}
.customer-profile-form select[multiple]{min-height:90px}
.customer-profile-form .switch-line{display:flex!important;align-items:center;justify-content:space-between}
.customer-profile-form .switch-line input{width:auto}
.profile-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.profile-category-add{justify-self:start;padding:3px 0}
.customer-profile-form .full{margin-top:4px}
@media(max-width:760px){.customer-profile-panel{max-height:48dvh;padding:10px}.profile-two-col{grid-template-columns:minmax(0,1fr)}.chat-footer{flex-wrap:wrap}.chat-footer button{padding:6px 5px}}

/* Alpha10.8 Build61 customer workflow workspace */
.customer-followup-workspace{border-top:1px solid var(--border);margin-top:16px;padding-top:14px}
.customer-followup-workspace .panel-heading{margin:12px 0 8px}
.followup-task{border:1px solid var(--border);border-radius:10px;padding:10px;margin:8px 0}
.followup-task.overdue{border-color:var(--danger,#c55)}
.customer-custom-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.customer-custom-fields label{display:flex;flex-direction:column;gap:5px}
.customer-custom-fields select[multiple]{min-height:76px}
.customer-custom-fields .switch-line{flex-direction:row;align-items:center}
@media(max-width:640px){.customer-custom-fields{grid-template-columns:1fr}.customer-followup-workspace .panel-heading{align-items:flex-start;gap:8px}}

/* Alpha10.8 Build62 follow-up dashboard */
.metric-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.task-history{margin-top:8px;padding:8px 10px;border-radius:8px;background:#f7f9fd;color:#6d7a90;line-height:1.8}.metric-card span{color:var(--muted);font-size:13px}.metric-card strong{font-size:26px;font-weight:700}.data-table tr.overdue td{background:color-mix(in srgb,var(--danger,#c55) 7%,transparent)}.tag.red{color:var(--danger,#c55)}
