@charset "UTF-8";
/* WS desk: TG 运营管理中心浅色蓝。客服专有结构（分组导航、底部账号、查询/拉群模块）；通用组件见 desk-tg-theme.css。 */
body.portal-desk{--green:#2f6fe0;--green-dark:#2462d4;--green-light:#eef3fd;--bg:#f3f5f9;--surface:#fff;--text:#1b2433;--muted:#5d697c;--line:#e1e6ee;--radius:12px;--shadow:0 4px 20px #25345103;--desk-sidebar:254px;background:var(--bg);color:var(--text);font-family:"Microsoft YaHei","Segoe UI","Segoe UI Emoji","Noto Color Emoji",system-ui,sans-serif}
body.portal-desk .sidebar{width:var(--desk-sidebar);min-width:var(--desk-sidebar);padding:0;background:linear-gradient(180deg,#f5f6f8 0%,#fff 60%,#f7f8fa 100%);color:#50565e;border-right:1px solid var(--line);box-shadow:8px 0 30px rgba(30,41,59,.042);overflow:hidden}
body.portal-desk .main-shell{margin-left:var(--desk-sidebar)}
body.portal-desk .sidebar>.brand{height:78px;min-height:78px;padding:16px 18px;gap:11px;border-bottom:1px solid var(--line);color:#20293b}
body.portal-desk .sidebar .brand-mark{width:40px;height:40px;border-radius:12px;border:1px solid rgba(0,127,255,.38);background:linear-gradient(145deg,#358df7,#245fc8);font-size:25px;letter-spacing:-1.5px;box-shadow:0 9px 24px rgba(15,110,240,.25)}
body.portal-desk .sidebar .brand-mark span{color:#cfe2ff;font-size:25px;top:1px}
body.portal-desk .sidebar .brand strong{font-size:15px;line-height:1.4;letter-spacing:0}
body.portal-desk .sidebar .brand small{color:var(--muted);opacity:1;font-size:12px;letter-spacing:0;margin-top:1px}
body.portal-desk .workspace-tag{display:none}
body.portal-desk #navigation{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0;padding:8px 10px 16px;scrollbar-width:thin;scrollbar-color:#d6d9e1 transparent;overscroll-behavior:contain}
body.portal-desk #navigation::-webkit-scrollbar{width:5px}body.portal-desk #navigation::-webkit-scrollbar-thumb{background:#d6d9e1;border-radius:5px}
body.portal-desk .sidebar .nav-section{font-size:12px;color:#646a72;font-weight:700;letter-spacing:1.5px;margin:18px 10px 9px}
body.portal-desk .sidebar .nav-section:first-child{margin-top:9px}
body.portal-desk .sidebar .nav-item,body.portal-desk .nav-group>summary{position:relative;display:flex;align-items:center;gap:11px;min-height:42px;padding:10px 12px;margin:2px 0;border:1px solid transparent;border-radius:9px;color:#50565e;font-size:14px;font-weight:500;line-height:1.4;text-decoration:none;cursor:pointer;transition:background .12s,color .12s}
body.portal-desk .sidebar .nav-item svg,body.portal-desk .nav-group>summary>svg{width:18px;height:18px;opacity:1;flex:0 0 18px}
body.portal-desk .sidebar .nav-item>span:not(.nav-dot){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.portal-desk .sidebar .nav-item:hover,body.portal-desk .nav-group>summary:hover{background:rgba(15,23,42,.041);color:var(--text)}
body.portal-desk .nav-group.active>summary{color:#131c28;font-weight:600}
body.portal-desk .sidebar .nav-item.active{background:linear-gradient(90deg,rgba(15,111,240,.2),rgba(15,111,240,.08));border-color:rgba(17,115,238,.2);color:#131c28;font-weight:600}
body.portal-desk .sidebar .nav-item.active::after{display:none}
body.portal-desk .sidebar .nav-item.active:not(.nav-child)::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:#2462d4}
body.portal-desk .nav-group{margin:2px 0 6px;padding:0;border:0;background:transparent;border-radius:0}
body.portal-desk .nav-group>summary{list-style:none;user-select:none}
body.portal-desk .nav-group>summary::-webkit-details-marker{display:none}
body.portal-desk .nav-group>summary::marker{content:""}
body.portal-desk .nav-group-label{flex:1;min-width:0}
body.portal-desk .nav-chevron{display:flex;align-items:center;justify-content:center;margin-left:auto;transition:transform .15s}
body.portal-desk .nav-chevron svg{width:14px;height:14px}
/* 与 TG、管理后台一致：收起时箭头朝下，展开时朝上 */
body.portal-desk .nav-chevron{transform:rotate(90deg)}
body.portal-desk .nav-group[open]>summary .nav-chevron{transform:rotate(-90deg)}
body.portal-desk .nav-group-items{margin:6px 0 10px 25px;padding:0 0 0 10px;border-left:1px solid var(--line)}
body.portal-desk .sidebar .nav-child{min-height:36px;padding:8px 10px;gap:8px;font-size:13px;margin:2px 0;border-radius:9px}
body.portal-desk .nav-dot{width:4px;height:4px;flex:0 0 4px;border-radius:50%;background:#a6afc2}
body.portal-desk .nav-child.active .nav-dot{background:#2462d4}
body.portal-desk .nav-count{min-width:22px;margin-left:auto;padding:1px 6px;border-radius:20px;background:#2462d4;color:#fff;font-size:12px;text-align:center}
body.portal-desk .sidebar-bottom{flex:none;margin:0;padding:12px 14px 10px;background:rgba(30,41,59,.03);border-top:1px solid var(--line)}
body.portal-desk .sidebar-bottom .official-tag,body.portal-desk .sidebar-bottom p,body.portal-desk .sidebar-bottom>a:not(.portal-switch){display:none}
body.portal-desk .portal-switch{margin:0;padding:8px 10px;border:1px solid rgba(47,111,224,.22);background:rgba(47,111,224,.06);color:#2462d4!important;font-size:13px!important;font-weight:600;border-radius:9px;line-height:1.6}
body.portal-desk .portal-switch:hover{color:#1d54b8!important;background:rgba(47,111,224,.12)}
body.portal-desk .desk-account-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:62px;padding:12px 16px;border-top:1px solid var(--line);background:#f7f8fa;flex:none}
body.portal-desk .desk-account-footer .user-chip{display:flex;min-width:0;flex:1;gap:9px}
body.portal-desk .desk-account-footer .user-chip>div{display:block;min-width:0}
body.portal-desk .desk-account-footer .user-chip strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--text)}
body.portal-desk .desk-account-footer .user-chip small{margin-top:2px;font-size:12px;color:var(--muted)}
body.portal-desk .avatar{width:32px;height:32px;border-radius:50%;border:1px solid rgba(8,114,247,.34);background:linear-gradient(145deg,#4b8df0,#2f6fe0);color:#fff}
body.portal-desk .topbar{height:auto;min-height:64px;padding:9px clamp(18px,3vw,38px);background:#f7f8fa;backdrop-filter:none;border-bottom:1px solid rgba(100,116,139,.35);gap:16px}
body.portal-desk .breadcrumb{display:flex;flex-direction:column;gap:3px;min-width:0;white-space:normal;line-height:1.3;color:var(--muted);font-size:12px;letter-spacing:.9px}
body.portal-desk .breadcrumb>span{display:none}
body.portal-desk .breadcrumb em{font-style:normal;font-weight:600}
body.portal-desk .breadcrumb strong{font-size:17px;font-weight:700;color:var(--text);letter-spacing:0}
body.portal-desk .topbar-actions{gap:8px;flex-shrink:0}
body.portal-desk .mode-badge{font-size:12px;padding:4px 10px;background:rgba(235,143,20,.1);border-color:rgba(235,143,20,.28);color:#905909}
body.portal-desk .topbar .btn.small{min-height:32px;padding:5px 9px;font-size:12px;border-radius:8px}
body.portal-desk .icon-button{color:var(--muted);flex:none}
body.portal-desk .icon-button:hover{background:rgba(15,23,42,.045);color:var(--text)}
body.portal-desk #content{max-width:1680px;width:100%;padding:27px clamp(18px,3vw,38px) 48px;margin:0 auto}
body.portal-desk .page-header{margin-bottom:21px;gap:22px;align-items:flex-end}
body.portal-desk .page-header h1{font-size:clamp(23px,2.6vw,31px);letter-spacing:-.7px;line-height:1.25}
body.portal-desk .page-header p{font-size:14px;color:var(--muted);margin-top:5px}
body.portal-desk .panel{border-color:var(--line);border-radius:15px;box-shadow:0 10px 32px rgba(30,41,59,.035)}
body.portal-desk .panel-header{padding:14px 17px}body.portal-desk .panel-body{padding:17px}
body.portal-desk .btn{border-radius:9px}
body.portal-desk .btn.primary{color:#fff}
body.portal-desk .btn.primary:hover:not(:disabled){color:#fff}
body.portal-desk .welcome-card{background:linear-gradient(145deg,#358df7,#245fc8);color:#fff}
body.portal-desk .welcome-card p{color:#dbe8ff}
body.portal-desk .wa-qr{min-height:130px;text-align:center;margin:20px 0}body.portal-desk .wa-qr img{max-width:100%;height:auto}
body.portal-desk .toolbar .field{margin-bottom:0;min-width:200px}
body.portal-desk .chat-messages{background:#f7f8fc}body.portal-desk .outgoing .message-bubble{background:#eaf1fd;border-color:#d3e2fa}
body.portal-desk .app-footer{padding:16px clamp(18px,3vw,38px);color:var(--muted);font-size:12px}
body.portal-desk .lookup-workspace{--lookup-blue:#2462d4;--lookup-line:#e1e6ee;--lookup-muted:#5d697c;max-width:1100px}
body.portal-desk .lookup-workspace .lookup-header{border-top:0;padding:0 0 22px}
body.portal-desk .lookup-workspace h1{font-size:clamp(23px,2.6vw,31px)}
body.portal-desk .lookup-card{border-radius:15px;box-shadow:0 10px 32px rgba(30,41,59,.035)}
body.portal-desk .lookup-workspace .lookup-btn:hover:not(:disabled){background:rgba(47,111,224,.08);border-color:rgba(47,111,224,.3);color:#1d54b8}
body.portal-desk .lookup-workspace .primary:hover:not(:disabled){background:#1d54b8}
body.portal-desk .pull-workspace{--pull-purple:#2462d4;--pull-border:#e1e6ee;--pull-muted:#5d697c;font-family:inherit}
body.portal-desk .pull-header h1{font-size:clamp(23px,2.6vw,31px)}
body.portal-desk :is(a,button,summary):focus-visible{outline:2px solid #2462d4;outline-offset:2px}
@media(max-width:760px){body.portal-desk .main-shell{margin-left:0}body.portal-desk .sidebar{width:254px;min-width:254px;box-shadow:12px 0 40px #202c4615}body.portal-desk .topbar{min-height:70px;height:auto;padding:12px 16px;gap:10px}body.portal-desk .breadcrumb{flex:1}body.portal-desk .breadcrumb strong{font-size:16px}body.portal-desk .topbar-actions{gap:5px}body.portal-desk #content{padding:22px 16px 28px}body.portal-desk .app-footer{padding:14px 16px}body.portal-desk .toolbar .field{min-width:0}}
@media(max-width:480px){body.portal-desk .topbar{flex-wrap:wrap}body.portal-desk .topbar-actions{margin-left:auto}body.portal-desk .mode-badge{font-size:10px}body.portal-desk .page-header h1,body.portal-desk .lookup-workspace h1,body.portal-desk .pull-header h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){body.portal-desk .nav-chevron,body.portal-desk .nav-item{transition:none}}

/* Give the pull composer a wider canvas while retaining a separate page heading. */
body.portal-desk #content:has(>.pull-workspace[data-kind="pull"]){max-width:1680px}
