:root{--ink:#182d32;--muted:#62777a;--line:#e3ebeb;--teal:#087f73;--teal-light:#e7f6f1;--bg:#f5f8f8;--side:#102f32;--red:#c23b48;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a{touch-action:manipulation}button{border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.875rem;font-weight:600}button:hover{background:#f0f5f4}button.primary,.primary{background:var(--teal);color:white;border-color:var(--teal)}button.primary:hover{background:#08695f}button.icon{padding:10px;background:transparent;border-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #61c5b7;outline-offset:3px}input,select,textarea{width:100%;background:white;color:var(--ink);border:1px solid #d8e3e3;border-radius:8px;padding:11px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #087f7312}textarea{resize:vertical;line-height:1.6}select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2362777a' stroke-width='2'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}label{display:block;font-size:.875rem;font-weight:600;margin-bottom:7px}a{color:var(--teal);text-decoration:none}p{line-height:1.65}h1,h2,h3,p{margin-top:0}h1{font-size:1.6rem;letter-spacing:-.04em}h2{font-size:1.2rem;letter-spacing:-.025em}h3{font-size:1rem}.muted{color:var(--muted)}.small,small{font-size:.78rem;line-height:1.5}.field{margin-bottom:19px}.hint{font-size:.8rem;color:var(--muted);line-height:1.6;margin-top:7px}.lang{width:auto;min-width:110px;font-size:.875rem}.row{display:flex;align-items:center;gap:10px}.spread{justify-content:space-between}.wrap{flex-wrap:wrap}.hidden,[hidden]{display:none!important}.badge{font-size:.75rem;padding:5px 9px;border-radius:6px;background:#edf2f2;color:var(--muted);white-space:nowrap}.badge.green{background:var(--teal-light);color:#08745e}.avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:13px;background:#e5efee;color:#386860;font-size:1rem;font-weight:650}.avatar.alt{background:#e8eefe;color:#516a9a}.logo{width:38px;height:38px}.brand{display:flex;align-items:center;gap:12px;font-size:1.05rem;font-weight:650}.brand small{display:block;font-weight:400;font-size:.72rem;letter-spacing:.09em;opacity:.6;margin-top:4px}.loading{padding:40px;color:var(--muted)}.shell{display:grid;grid-template-columns:224px 1fr;height:100dvh;overflow:hidden}.sidebar{background:var(--side);color:#e5f2f0;display:flex;flex-direction:column;padding:28px 18px 20px}.sidebar .brand{padding:0 8px 35px}.nav{display:grid;gap:7px}.nav button{justify-content:flex-start;background:transparent;color:#a6c1bf;border:0;padding:13px 14px;font-weight:500;border-radius:8px}.nav button:hover,.nav button.active{background:#24524f;color:white}.nav button.active{box-shadow:inset 3px 0 #7bd6b9}.nav-count{margin-left:auto;background:#458477;border-radius:5px;padding:2px 7px;font-size:.72rem}.side-note{margin-top:auto;padding:24px 10px;color:#87aaa5;font-size:.82rem;line-height:1.8}.side-user{border-top:1px solid #315054;padding-top:18px;display:flex;align-items:center;gap:10px}.side-user .avatar{width:35px;height:35px;border-radius:50%;background:#32645d;color:#d7f3e7}.side-user b{font-size:.85rem}.side-user small{display:block;color:#96b5b0}.side-user button{margin-left:auto;color:#a7c9c1}.main{display:flex;flex-direction:column;min-width:0;overflow:hidden}.topbar{min-height:83px;padding:18px 30px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar h1{margin:0;font-size:1.25rem}.topbar .sub{font-size:.78rem;color:var(--muted);margin-top:5px}.online-toggle{border:1px solid #d6e9df;background:#f1faf6;font-size:.8rem;color:#19745b;border-radius:25px;padding:9px 13px;white-space:nowrap}.online-toggle:before{content:'';display:block;width:7px;height:7px;border-radius:50%;background:#2ba77d}.online-toggle.away:before{background:#9aaba6}.workspace{display:flex;flex-direction:column;min-height:0;flex:1;padding:24px 28px;gap:20px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat{background:white;border:1px solid var(--line);padding:16px 20px;border-radius:12px;display:flex;align-items:center;gap:15px}.stat .stat-icon{background:#edf6f3;color:#21836b;border-radius:11px;padding:12px;display:flex}.stat:nth-child(2) .stat-icon{background:#fff3e5;color:#c48b39}.stat small{display:block;color:var(--muted);font-size:.8rem}.stat strong{display:block;font-size:1.45rem;margin-top:5px;font-weight:650}.inbox-layout{display:grid;grid-template-columns:310px minmax(280px,1fr) 232px;min-height:0;flex:1;background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.conversation-pane{display:flex;flex-direction:column;border-right:1px solid var(--line);min-height:0}.list-head{padding:20px 18px 12px}.list-head h2{font-size:1rem;margin-bottom:15px}.search{position:relative}.search svg{position:absolute;left:10px;top:11px;color:#829693}.search input{padding-left:36px;background:#f7f9f9;font-size:.84rem;border-color:#edf1f1}.filters{display:flex;gap:5px;margin:14px 0 10px}.filters button{border:0;font-size:.8rem;padding:7px 10px;color:var(--muted);font-weight:500}.filters button.active{background:var(--teal-light);color:var(--teal);font-weight:650}.list-head select{font-size:.8rem;padding-top:8px;padding-bottom:8px}.conversation-list{overflow:auto;min-height:0;flex:1}.conversation{display:flex;align-items:flex-start;gap:11px;padding:16px 17px;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid #f0f3f3;font-weight:400}.conversation:hover{background:#f7faf9}.conversation.active{background:#eaf6f2;border-left:3px solid var(--teal);padding-left:14px}.conversation .avatar{width:38px;height:38px;border-radius:11px}.conversation .summary{min-width:0;flex:1}.conversation strong{font-size:.875rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px}.conversation small{font-size:.7rem;white-space:nowrap;color:#83938e}.conversation .preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:.81rem;margin:6px 0}.conversation .site-label{font-size:.68rem;color:#79918a}.unread{display:inline-flex;border-radius:20px;background:var(--teal);color:white;font-size:.7rem;min-width:20px;height:20px;padding:0 5px;align-items:center;justify-content:center}.chat-pane{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fbfcfc}.chat-header{min-height:79px;padding:16px 20px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;gap:10px}.chat-header h2{font-size:.95rem;margin:0 0 5px}.chat-header small{color:var(--muted);font-size:.75rem}.chat-header .close-conv{margin-left:auto;font-size:.78rem}.chat-messages{flex:1;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:19px;min-height:0;scroll-behavior:smooth}.message{max-width:85%;align-self:flex-start;display:flex;flex-direction:column;gap:6px}.message.own{align-self:flex-end;align-items:flex-end}.message-author{font-size:.72rem;color:var(--muted)}.bubble{background:white;border:1px solid #e4ebea;border-radius:2px 13px 13px 13px;padding:12px 15px;box-shadow:0 2px 3px #17393103;font-size:.9rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;min-width:50px}.own .bubble{background:#def2e9;border:1px solid #d5ebe2;border-radius:13px 2px 13px 13px;color:#174f42}.message small{font-size:.69rem;color:#8a9d96}.chat-image{display:block;max-width:100%;max-height:260px;min-width:80px;border-radius:7px;object-fit:contain;margin-bottom:4px;cursor:zoom-in}.composer{margin:0 18px 17px;background:white;border:1px solid #dde7e4;border-radius:12px;overflow:hidden;flex-shrink:0}.composer textarea{border:0;box-shadow:none;resize:none;min-height:80px;max-height:160px;padding:15px 17px;background:transparent;font-size:.9rem}.composer-tools{display:flex;justify-content:space-between;align-items:center;padding:7px 9px;border-top:1px solid #f1f4f3;gap:10px}.composer-tools .hint{margin:0;font-size:.68rem}.composer-tools button{padding:8px 14px}.composer-tools .icon{padding:8px;color:#69857b}.composer-tools select{font-size:.78rem;width:150px;padding-top:7px;padding-bottom:7px;border:none;max-width:26vw}.image-pending{padding:8px 15px;display:flex;align-items:center;gap:10px}.image-pending img{height:45px;max-width:80px;object-fit:cover;border-radius:6px}.details-pane{border-left:1px solid var(--line);padding:22px 18px;overflow:auto}.details-pane h3{font-size:.85rem;margin-bottom:23px}.visitor-card{text-align:center;border-bottom:1px solid var(--line);padding:5px 0 24px;margin-bottom:23px}.visitor-card .avatar{width:62px;height:62px;font-size:1.4rem;border-radius:20px;margin:0 auto 13px}.visitor-card b{display:block;font-size:.95rem;overflow-wrap:anywhere}.visitor-card small{color:var(--muted);display:block;margin-top:6px;font-size:.7rem}.detail-field{margin-bottom:20px;font-size:.82rem;overflow-wrap:anywhere;line-height:1.6}.detail-field label{font-size:.72rem;color:var(--muted);font-weight:400;margin-bottom:5px}.detail-field select{font-size:.82rem}.empty{display:flex;align-items:center;justify-content:center;text-align:center;padding:30px;color:var(--muted);flex-direction:column;flex:1}.empty .empty-icon{color:#73a394;background:#eaf4f0;padding:24px;border-radius:25px;margin-bottom:22px}.empty .empty-icon svg{width:35px;height:35px}.empty h2{font-size:1.1rem;color:#405d54;margin-bottom:10px}.empty p{font-size:.85rem;max-width:320px;margin:0}.empty.compact{padding:40px 22px}.empty.compact p{font-size:.8rem}.content-page{overflow:auto;flex:1;padding:30px;max-width:1150px;width:100%;margin:0 auto}.page-title{margin-bottom:25px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.page-title p{color:var(--muted);font-size:.9rem;max-width:700px}.panel{border:1px solid var(--line);background:white;border-radius:13px;padding:24px;margin-bottom:20px}.panel h2{margin:0}.site-card code{display:block;background:#f3f6f6;padding:16px;border-radius:8px;font-size:.78rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;color:#406057;margin:15px 0}.site-card .origin-list{font-size:.8rem;color:var(--muted);margin:15px 0;overflow-wrap:anywhere}.site-card label{font-size:.8rem;margin-top:20px}.section-note{padding:18px 21px;background:#e8f4ef;color:#3e6c5b;border-radius:10px;font-size:.85rem;line-height:1.65;margin-bottom:24px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.875rem}th,td{text-align:left;padding:16px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-weight:500;color:var(--muted);font-size:.78rem;background:#f9fbfa}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;max-width:520px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 25px 80px #102f3226;max-height:90dvh;overflow:auto}dialog::backdrop{background:#0d282b70;backdrop-filter:blur(3px)}dialog h2{margin:0 0 23px}dialog .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#163d36;color:white;padding:13px 22px;border-radius:10px;box-shadow:0 6px 30px #0002;z-index:2147483647;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;font-size:.875rem}#toast.visible{opacity:1;transform:translate(-50%,0)}.network-bar{background:#fff3db;color:#805f17;padding:9px 20px;font-size:.8rem;text-align:center}.auth{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-art{background:var(--side);color:white;padding:55px 70px;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-art h1{font-size:2.9rem;line-height:1.25;max-width:480px;margin-top:auto;letter-spacing:-.045em;position:relative}.auth-art p{color:#b0ccc4;font-size:1.05rem;max-width:370px;margin-bottom:70px}.auth-art .auth-illustration{height:230px;position:relative;margin:30px 0 auto}.sample-bubble{position:absolute;border:1px solid #558076;background:#24554e;border-radius:18px;padding:22px;width:230px;transform:rotate(-5deg);left:8%;top:15px}.sample-bubble:nth-child(2){background:#c5eddb;border-color:#d8f4e6;transform:rotate(6deg);left:34%;top:107px}.sample-line{height:7px;border-radius:4px;background:#79a79b;width:90%;margin:9px 0}.sample-bubble:nth-child(2) .sample-line{background:#79b49d}.sample-line.short{width:58%}.auth-form-wrap{display:flex;flex-direction:column;padding:40px 60px}.auth-form-wrap>.lang{align-self:flex-end}.auth-form{width:100%;max-width:370px;margin:auto}.auth-form .eyebrow{font-size:.75rem;font-weight:650;color:var(--teal);letter-spacing:.16em;margin-bottom:20px}.auth-form h1{font-size:1.8rem;margin-bottom:13px}.auth-form p{font-size:.9rem;color:var(--muted);margin-bottom:28px}.auth-form .primary{width:100%;padding:13px}.auth-footer{text-align:center;color:#8fa399;font-size:.75rem;margin-top:35px}.form-error{color:var(--red);font-size:.85rem;line-height:1.5;margin-bottom:14px;min-height:20px}.mobile-only{display:none!important}.chat-app{height:100dvh;display:flex;flex-direction:column;background:#f7faf9}.widget-header{background:var(--side);color:white;padding:22px;display:flex;align-items:center;gap:12px;flex-shrink:0}.widget-header .logo{width:40px;height:40px}.widget-header h1{font-size:1.05rem;letter-spacing:-.02em;margin:0 0 6px}.widget-header small{color:#b2d5c8;font-size:.77rem}.widget-header .lang{margin-left:auto;max-width:100px;min-width:85px;background-color:#1c4440;border-color:#42635c;color:#e1f3e9;font-size:.75rem}.visitor-start{padding:28px 24px;overflow:auto}.visitor-start h2{font-size:1.4rem;line-height:1.4}.visitor-start p{color:var(--muted);font-size:.88rem}.visitor-start form{background:white;padding:21px;border:1px solid var(--line);border-radius:13px;margin-top:23px}.visitor-start button{width:100%}.chat-app .chat-messages{padding:20px}.chat-app .composer{margin:0 12px 12px}.chat-app .composer textarea{min-height:64px}.chat-app .composer-tools .hint{font-size:.7rem;max-width:190px}.chat-status{padding:9px 20px;font-size:.75rem;background:#eaf3ed;color:#587467;text-align:center;line-height:1.5}.demo-page{max-width:1000px;margin:0 auto;padding:40px 25px}.demo-page .hero{padding:90px 0;max-width:650px}.demo-page h1{font-size:3rem;line-height:1.2}.demo-page p{color:var(--muted);font-size:1.05rem}.demo-page .badge{display:inline-block;margin-bottom:20px}.image-dialog{max-width:900px;padding:15px}.image-dialog img{display:block;max-width:100%;max-height:75dvh;margin:15px auto}.image-dialog button{display:flex;margin-left:auto}
@media(min-width:1600px){.inbox-layout{grid-template-columns:350px minmax(300px,1fr) 270px}.sidebar{padding-top:32px}.workspace{padding:28px 36px;gap:24px}}
@media(max-width:1250px){.shell{grid-template-columns:190px 1fr}.sidebar{padding-left:12px;padding-right:12px}.sidebar .brand{font-size:.9rem;gap:8px}.sidebar .logo{width:31px}.workspace{padding:20px}.topbar{padding:18px 22px}.inbox-layout{grid-template-columns:290px minmax(260px,1fr)}.details-pane{display:none}.composer-tools .hint{display:none}.auth-art{padding:45px}.auth-form-wrap{padding:35px}.auth-art h1{font-size:2.4rem}}
@media(max-width:850px){.shell{grid-template-columns:74px 1fr}.sidebar{padding:25px 10px}.sidebar .brand{padding:0 9px 30px}.sidebar .brand>div,.sidebar .nav-label,.side-note,.side-user>div,.side-user .avatar{display:none}.nav button{justify-content:center;padding:14px}.side-user button{margin:auto}.nav-count{display:none}.stats{gap:10px}.stat{padding:14px;gap:10px}.stat .stat-icon{padding:9px}.stat small{font-size:.7rem}.stat strong{font-size:1.25rem}.workspace{padding:17px;gap:16px}.inbox-layout{grid-template-columns:260px minmax(240px,1fr)}.topbar .sub{display:none}.topbar{min-height:70px}.topbar h1{font-size:1.1rem}.topbar .row{gap:5px}.topbar .icon{padding:8px}.online-toggle{font-size:.75rem;padding:8px 10px}.auth{grid-template-columns:.9fr 1fr}.auth-art{padding:40px 30px}.auth-art h1{font-size:2rem}.sample-bubble{width:160px}.sample-bubble:nth-child(2){left:22%}}
@media(max-width:680px){.mobile-only{display:inline-flex!important}.shell{grid-template-columns:1fr}.sidebar{display:none;position:fixed;top:65px;left:0;bottom:0;width:235px;z-index:50;box-shadow:20px 0 40px #0003}.shell.menu-open .sidebar{display:flex}.sidebar .brand>div,.sidebar .nav-label,.side-note,.side-user>div,.side-user .avatar{display:block}.sidebar .nav button{justify-content:flex-start}.sidebar .brand{padding:10px 8px 24px}.side-user button{margin-left:auto;margin-right:0}.sidebar .avatar{display:flex!important}.topbar{min-height:65px;padding:12px 13px;gap:8px}.topbar h1{font-size:1rem}.topbar .lang{font-size:.75rem;min-width:85px;padding:8px}.topbar .online-toggle{font-size:0;gap:0;padding:11px}.topbar .online-toggle:before{width:9px;height:9px}.topbar .notify-button{display:none}.topbar .row{gap:2px}.topbar .icon{padding:7px}.workspace{padding:12px;gap:12px}.stats{gap:8px}.stat{padding:12px 10px;display:block}.stat .stat-icon{display:none}.stat small{font-size:.7rem;white-space:normal}.stat strong{font-size:1.2rem;margin-top:6px}.inbox-layout{display:flex;flex-direction:column;border-radius:10px}.conversation-pane{flex:1;border:0;overflow:hidden}.chat-pane{display:none;flex:1;overflow:hidden}.shell.chat-selected .conversation-pane{display:none}.shell.chat-selected .chat-pane{display:flex}.shell.chat-selected .stats{display:none}.list-head{padding:16px}.conversation strong{max-width:200px}.conversation{padding:17px 16px}.chat-header{padding:12px 10px;min-height:70px;gap:7px}.chat-header .avatar{width:33px;height:33px}.chat-header .close-conv{padding:9px 10px;font-size:.75rem}.chat-header h2{font-size:.85rem}.chat-header small{font-size:.68rem}.chat-messages{padding:18px 13px;gap:17px}.message{max-width:88%}.bubble{font-size:.9rem;padding:11px 13px}.composer{margin:0 8px 8px}.composer textarea{min-height:70px}.composer-tools select{max-width:130px;width:130px;font-size:.75rem}.content-page{padding:20px 15px}.panel{padding:18px}.page-title{display:block}.page-title>button{margin-top:6px}.page-title h1{font-size:1.4rem}.auth{display:block}.auth-art{display:none}.auth-form-wrap{min-height:100dvh;padding:26px}.auth-form{margin:auto}.auth-form h1{font-size:1.7rem}.demo-page .hero{padding:65px 0}.demo-page h1{font-size:2.3rem}.chat-app .widget-header{padding:17px}.chat-app .visitor-start{padding:23px 20px}}

.details-button{display:none!important}@media(max-width:1250px){.details-button{display:inline-flex!important}}

#chat-name{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.widget-header h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:680px){#chat-name{max-width:130px}.chat-header .close-conv{white-space:normal}}
.chat-tabs{display:flex;overflow-x:auto;gap:7px;padding:8px 10px;border-bottom:1px solid var(--line);background:#f2f7f4;flex-shrink:0}.chat-tab{display:flex;align-items:center;flex:0 0 auto;max-width:220px;border:1px solid #dce8e1;border-radius:8px;background:white}.chat-tab.active{border-color:#278c72;background:#e4f4eb}.chat-tab button{border:0;background:none;border-radius:7px;padding:7px 10px;text-align:left;font-size:.8rem;display:block;min-width:0}.chat-tab small{display:block;font-size:.69rem;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);margin-top:4px}.chat-tab button[data-close-chat]{padding:7px}.chat-tab svg{width:15px;height:15px}.composer-tools>.hint{display:none}.chat-header>div:not(.avatar){min-width:0;flex:1}.chat-header small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.faq-dialog{max-width:650px}.faq-results{max-height:50dvh;overflow:auto;margin-top:16px}.faq-results article{border:1px solid var(--line);padding:16px;border-radius:9px;margin-bottom:12px}.faq-results h3{line-height:1.6;margin-bottom:8px}.faq-results p{white-space:pre-wrap;font-size:.875rem;overflow-wrap:anywhere}.faq-warning{background:#fff2d8;color:#7a5c24;padding:10px;border-radius:8px;font-size:.85rem}.faq-site-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.nav-code{font-size:.8rem;background:#f2f6f4;white-space:pre-wrap;overflow-wrap:anywhere;padding:15px;border-radius:8px;line-height:1.6}.nav-settings h2{margin-bottom:14px}.chat-origin-switch{padding:6px 15px;display:flex;align-items:center;justify-content:space-between;background:#edf5f0;font-size:.78rem;color:var(--muted)}.chat-origin-switch button{font-size:.75rem;padding:6px 10px}

.client-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-top:14px;margin-bottom:18px}.client-ip{overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.85rem}
