:root{--ink:#17221c;--muted:#738079;--line:#e6e7e0;--paper:#f5f5f1;--white:#fff;--green:#1c6b4a;--green-soft:#e8f3ec;--orange:#e79d59;--orange-soft:#fff2e5;--red:#b95345;--shadow:0 16px 45px rgba(26,40,32,.08);font-family:"Avenir Next","PingFang SC","Noto Sans SC",system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{background:var(--paper)}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}.logo-mark{width:35px;height:35px;border-radius:11px;background:var(--ink);display:inline-grid;place-items:center;position:relative}.logo-mark:before{content:"";width:17px;height:12px;border:1.7px solid #fff;border-radius:6px}.logo-mark i{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--orange);top:7px;right:6px;border:2px solid var(--ink)}.login-view{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(400px,.92fr);background:#fbfbf8}.login-aside{background:#17221c;color:#fff;padding:42px 56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-aside:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-250px;bottom:-190px;box-shadow:0 0 0 90px rgba(255,255,255,.025),0 0 0 180px rgba(255,255,255,.018)}.login-brand,.sidebar-brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;letter-spacing:-.02em}.login-aside .logo-mark{background:#f3f1e9}.login-aside .logo-mark:before{border-color:var(--ink)}.login-intro{max-width:620px;position:relative;z-index:1}.eyebrow,.section-kicker,.topbar p,.panel-title p{font-size:10px;font-weight:750;letter-spacing:.17em;text-transform:uppercase;color:#91a399;margin:0 0 16px}.login-intro h1{font-size:clamp(42px,5vw,70px);line-height:1.08;letter-spacing:-.055em;margin:0 0 24px}.login-intro p{max-width:500px;color:#aebbb4;line-height:1.8;font-size:15px}.login-foot{font-size:12px;color:#92a199;position:relative;z-index:1}.login-foot span{display:inline-block;width:22px;height:1px;background:var(--orange);vertical-align:middle;margin-right:8px}.login-panel{display:grid;place-items:center;padding:40px}.login-card{width:min(410px,100%)}.mobile-brand{display:none}.login-card h2{font-size:36px;letter-spacing:-.04em;margin:0 0 8px}.subcopy{color:var(--muted);line-height:1.7;margin:0 0 34px}.login-card label,.modal label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:650;margin-bottom:17px}.login-card input,.modal input,.modal textarea,.agent-composer textarea{border:1px solid #dcded7;background:#fff;border-radius:12px;padding:13px 14px;outline:0;transition:border .15s,box-shadow .15s}.login-card input:focus,.modal input:focus,.modal textarea:focus,.agent-composer textarea:focus{border-color:#85a696;box-shadow:0 0 0 3px rgba(28,107,74,.08)}.login-button{width:100%;margin-top:9px;justify-content:space-between}.form-error{color:var(--red);font-size:12px}.primary-button,.soft-button{border:0;border-radius:11px;padding:11px 15px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:14px;justify-content:center}.primary-button{background:var(--ink);color:#fff;box-shadow:0 7px 18px rgba(23,34,28,.16)}.primary-button:hover{background:#26372e}.primary-button.small{padding:9px 12px}.soft-button{background:#fff;border:1px solid var(--line)}.app-view{min-height:100vh;display:grid;grid-template-columns:230px 1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:var(--ink);color:#fff;padding:25px 18px;display:flex;flex-direction:column;z-index:20}.sidebar-brand{height:52px;padding:0 10px;color:#fff;text-decoration:none}.sidebar .logo-mark{background:#f3f1e9}.sidebar .logo-mark:before{border-color:var(--ink)}.sidebar nav{margin-top:36px;display:flex;flex-direction:column;gap:6px}.sidebar nav button{border:0;background:transparent;color:#9fad9f;border-radius:10px;padding:12px 13px;display:flex;align-items:center;gap:12px;text-align:left;font-size:13px}.sidebar nav button span{font-size:17px;width:20px}.sidebar nav button b{margin-left:auto;background:var(--orange);color:#17221c;min-width:19px;height:19px;border-radius:7px;text-align:center;line-height:19px;font-size:10px}.sidebar nav button:hover,.sidebar nav button.active{background:rgba(255,255,255,.09);color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:18px 7px 0}.server-state{display:flex;gap:10px;align-items:flex-start}.server-state>i{width:7px;height:7px;background:#5bb684;border-radius:50%;margin-top:5px;box-shadow:0 0 0 4px rgba(91,182,132,.12)}.server-state div{display:flex;flex-direction:column;gap:3px}.server-state strong{font-size:11px}.server-state span{font-size:9px;color:#809188}.logout-button{border:0;background:transparent;color:#85958d;font-size:11px;padding:15px 0 0}.workspace{grid-column:2;min-width:0}.topbar{height:89px;background:rgba(255,255,255,.85);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}.topbar p{margin:0 0 3px}.topbar h1{font-size:18px;margin:0;letter-spacing:-.02em}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.user-pill{width:36px;height:36px;background:var(--green-soft);color:var(--green);border-radius:12px;display:grid;place-items:center;font-weight:750;font-size:12px}.menu-button{display:none;border:0;background:transparent;font-size:20px}.page-view{padding:34px;max-width:1500px;margin:auto}.hero-row{display:flex;align-items:flex-end;justify-content:space-between;padding:15px 0 30px}.date-label{font-size:11px;color:var(--green);font-weight:700}.hero-row h2,.section-head h2{font-size:37px;line-height:1.2;letter-spacing:-.045em;margin:9px 0 0}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric-grid article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px;min-height:135px;display:flex;flex-direction:column;box-shadow:0 8px 25px rgba(26,40,32,.035)}.metric-grid article>span{font-size:11px;color:var(--muted)}.metric-grid strong{font-size:35px;letter-spacing:-.04em;margin:13px 0 5px}.metric-grid small{font-size:9px;color:#9ba39f}.metric-grid .metric-accent{background:var(--ink);color:#fff;border-color:var(--ink)}.metric-grid .metric-accent>span,.metric-grid .metric-accent small{color:#9dac9f}.metric-grid .metric-accent strong{color:#ffbd82}.overview-grid{display:grid;grid-template-columns:1.55fr .85fr;gap:14px;margin-top:14px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 25px rgba(26,40,32,.035)}.panel-title{padding:19px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.panel-title p{margin:0 0 3px;color:#9ba59f}.panel-title h3{margin:0;font-size:15px}.panel-title button{border:0;background:transparent;color:var(--green);font-size:10px;font-weight:700}.compact-list{min-height:244px}.compact-item{display:grid;grid-template-columns:9px 1fr auto;gap:12px;align-items:center;padding:15px 20px;border-bottom:1px solid #f0f0eb}.compact-item:last-child{border:0}.compact-item>i{width:7px;height:7px;border-radius:50%;background:#83a093}.compact-item.pending>i{background:var(--orange)}.compact-item div{min-width:0}.compact-item strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-item span{font-size:10px;color:var(--muted)}.compact-item time{font-size:9px;color:#9fa7a2}.health-item{display:flex;align-items:center;gap:11px;padding:18px 20px;border-bottom:1px solid var(--line)}.health-item>i{width:8px;height:8px;border-radius:50%;background:#b7bdb9}.health-item>i.ok{background:#52ae79;box-shadow:0 0 0 4px #e7f5ed}.health-item span{display:flex;flex:1;flex-direction:column}.health-item strong{font-size:11px}.health-item small{font-size:9px;color:var(--muted);margin-top:3px}.health-item>b{font-size:9px;color:var(--muted)}.health-note{margin:20px;border-radius:12px;background:var(--paper);padding:16px;font-size:10px;color:var(--muted)}.health-note strong{display:block;color:var(--ink);font-size:22px;margin-top:5px}.toolbar{display:flex;margin-bottom:14px}.filter-tabs{display:flex;gap:5px;background:#ebece6;padding:4px;border-radius:11px;overflow:auto}.filter-tabs button{border:0;background:transparent;padding:8px 12px;border-radius:8px;font-size:11px;color:var(--muted);white-space:nowrap}.filter-tabs button.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(20,30,24,.08)}.conversation-layout{display:grid;grid-template-columns:minmax(320px,.75fr) minmax(440px,1.25fr);gap:14px;height:calc(100vh - 170px)}.conversation-list-panel,.conversation-detail{overflow:hidden}.conversation-list{height:100%;overflow:auto}.conversation-row{width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:16px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:5px}.conversation-row:hover,.conversation-row.active{background:#f7faf7}.conversation-row strong{font-size:12px}.conversation-row p{grid-column:1/3;margin:4px 0 0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-row time{font-size:9px;color:#9da59f}.status-chip{font-size:9px;border-radius:7px;padding:4px 7px;background:#edf0ed;color:#66736c}.status-chip.handoff_pending{background:var(--orange-soft);color:#9a5a22}.status-chip.human_active{background:var(--green-soft);color:var(--green)}.empty-state{height:100%;display:grid;place-content:center;text-align:center;padding:30px;color:var(--muted)}.empty-state>span{font-size:36px;color:#aab5ae}.empty-state h3{margin:10px 0 5px;color:var(--ink);font-size:15px}.empty-state p{max-width:320px;font-size:11px;line-height:1.6}.conversation-detail>div:not(.empty-state){height:100%;display:grid;grid-template-rows:auto 1fr auto}.detail-header{display:flex;justify-content:space-between;gap:15px;padding:17px 20px;border-bottom:1px solid var(--line)}.detail-header p{margin:0;color:var(--green);font-size:9px;font-weight:700}.detail-header h3{margin:4px 0 7px;font-size:15px}.detail-header>div:last-child{display:flex;gap:7px;align-items:center}.detail-messages{overflow:auto;padding:20px;display:flex;flex-direction:column;gap:11px;background:#fafaf7}.detail-message{max-width:78%;align-self:flex-start}.detail-message.customer{align-self:flex-end}.detail-message p{margin:0;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:13px;font-size:12px;line-height:1.6;white-space:pre-wrap}.detail-message.customer p{background:var(--ink);color:#fff;border-color:var(--ink)}.detail-message.agent p{background:#eff9f2;border-color:#cbe6d4}.detail-message.system{align-self:center;max-width:90%}.detail-message.system p{background:var(--orange-soft);border:0;color:#87562f;font-size:10px}.detail-message span{display:block;margin:3px 5px;font-size:8px;color:#a1a8a4}.detail-message.customer span{text-align:right}.agent-composer{border-top:1px solid var(--line);padding:12px;display:flex;gap:8px}.agent-composer textarea{flex:1;min-height:44px;max-height:95px;resize:vertical}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:25px}.section-head .section-kicker{margin:0}.section-head>div>span{display:block;color:var(--muted);font-size:11px;margin-top:9px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:14px}.product-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 8px 25px rgba(26,40,32,.035)}.product-card header{display:flex;justify-content:space-between;align-items:flex-start}.product-card h3{font-size:16px;margin:8px 0 2px}.product-card .product-key{font-size:10px;color:var(--muted);font-family:ui-monospace,monospace}.product-icon{width:42px;height:42px;background:var(--green-soft);color:var(--green);border-radius:13px;display:grid;place-items:center;font-size:18px}.product-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.product-card dt{font-size:9px;color:var(--muted)}.product-card dd{font-size:11px;margin:4px 0 0;font-weight:650}.product-card footer{display:flex;gap:7px}.product-card footer button{flex:1}.toast{position:fixed;right:24px;top:102px;z-index:100;background:var(--ink);color:#fff;padding:11px 15px;border-radius:10px;font-size:11px;box-shadow:var(--shadow)}.modal{border:0;border-radius:18px;padding:0;width:min(720px,calc(100vw - 30px));box-shadow:0 30px 100px rgba(20,31,25,.28)}.modal::backdrop{background:rgba(13,23,18,.52);backdrop-filter:blur(4px)}.modal form>header{display:flex;justify-content:space-between;padding:21px 24px;border-bottom:1px solid var(--line)}.modal h2{font-size:20px;margin:0}.modal header .section-kicker{margin:0 0 4px}.modal header>button{border:0;background:transparent;font-size:25px;color:var(--muted)}.form-grid{padding:22px 24px;display:grid;grid-template-columns:1fr 1fr;gap:0 15px;max-height:62vh;overflow:auto}.form-grid .wide{grid-column:1/3}.modal textarea{min-height:75px;resize:vertical}.modal label small{font-size:9px;color:var(--muted);font-weight:400}.modal footer{display:flex;justify-content:flex-end;gap:8px;padding:15px 24px;border-top:1px solid var(--line)}.small-modal{width:min(560px,calc(100vw - 30px))}.small-modal form>label{padding:20px 24px 0}.test-answer{margin:0 24px 20px;padding:15px;background:var(--paper);border-radius:12px;white-space:pre-wrap;font-size:12px;line-height:1.7;max-height:250px;overflow:auto}.test-answer.loading{color:var(--muted)}
@media(max-width:1000px){.metric-grid{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:1fr 1fr}.overview-grid{grid-template-columns:1fr}.conversation-layout{grid-template-columns:1fr;height:auto}.conversation-list-panel{height:350px}.conversation-detail{height:650px}}
@media(max-width:760px){.login-view{grid-template-columns:1fr}.login-aside{display:none}.login-panel{padding:25px}.mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:45px;font-weight:750}.app-view{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:none}.workspace{display:block}.topbar{padding:0 16px}.menu-button{display:block;margin-right:12px}.page-view{padding:22px 15px}.hero-row{align-items:flex-start;gap:20px}.hero-row h2,.section-head h2{font-size:29px}.metric-grid,.product-grid{grid-template-columns:1fr}.conversation-layout{grid-template-columns:1fr}.conversation-detail{height:620px}.section-head{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.topbar-actions .soft-button{display:none}}
.callback-result{margin:0 24px 20px;padding:14px;background:var(--green-soft);border-radius:12px;display:flex;flex-direction:column;gap:7px}.callback-result strong{font-size:11px;color:var(--green)}.callback-result code{font-size:10px;overflow-wrap:anywhere}.callback-result small{font-size:9px;color:var(--muted);line-height:1.5}
.qr-preview-wrap{min-height:230px;border:1px dashed #cfd5cf;border-radius:14px;background:var(--paper);display:grid;place-items:center;margin-bottom:18px;padding:14px;color:var(--muted);font-size:11px}.qr-preview-wrap img{width:210px;height:210px;object-fit:contain;border-radius:10px;background:#fff;border:1px solid var(--line)}.danger-button{border:0;background:#fff0ee;color:var(--red);border-radius:11px;padding:11px 15px;font-size:12px;font-weight:700;margin-right:auto}
@media(max-width:760px){body.sidebar-open .sidebar{transform:none}}
[hidden]{display:none!important}
.product-card footer a{flex:1;text-align:center;text-decoration:none;font-size:11px;padding:9px 8px;border-radius:10px}
.analytics-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-top:14px}.panel-summary{font-size:10px;color:var(--muted)}.daily-chart{height:230px;padding:20px;display:flex;align-items:flex-end;gap:6px;overflow-x:auto}.daily-column{height:100%;min-width:19px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.daily-column .bar-wrap{width:100%;height:170px;display:flex;align-items:flex-end;justify-content:center}.daily-column .bar{width:min(22px,78%);min-height:3px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#4c8f70,#1c6b4a);position:relative}.daily-column .bar:hover{background:var(--orange)}.daily-column .bar:hover:after{content:attr(data-label);position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);background:var(--ink);color:#fff;font-size:9px;white-space:nowrap;padding:5px 7px;border-radius:6px;z-index:2}.daily-column time{font-size:8px;color:#9aa39e;white-space:nowrap}.knowledge-ranking{padding:6px 20px 12px;max-height:268px;overflow:auto}.knowledge-item{display:grid;grid-template-columns:24px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #f0f1ec}.knowledge-item:last-child{border:0}.knowledge-item>span{width:24px;height:24px;border-radius:8px;background:var(--paper);display:grid;place-items:center;font-size:9px;color:var(--muted);font-weight:750}.knowledge-item:nth-child(-n+3)>span{background:var(--orange-soft);color:#9a5a22}.knowledge-item div{min-width:0}.knowledge-item strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.knowledge-item small{display:block;font-size:8px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.knowledge-item b{font-size:11px;color:var(--green)}.customer-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(480px,1.28fr);gap:14px;height:calc(100vh - 210px)}.customer-list-panel,.customer-detail-panel{overflow:hidden}.customer-list{height:100%;overflow:auto}.customer-row{width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:15px 17px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:5px}.customer-row:hover,.customer-row.active{background:#f7faf7}.customer-row strong{font-size:12px}.customer-row time{font-size:9px;color:#9da59f}.customer-row p{grid-column:1/3;margin:2px 0;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-row small{grid-column:1/3;font-size:9px;color:#9da59f}.customer-detail-panel>div:not(.empty-state){height:100%;display:grid;grid-template-rows:auto 1fr}.customer-profile{padding:20px;border-bottom:1px solid var(--line)}.customer-profile h3{margin:0 0 4px;font-size:18px}.customer-profile>p{margin:0;color:var(--green);font-size:10px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.profile-grid div{background:var(--paper);border-radius:10px;padding:10px;min-width:0}.profile-grid span{display:block;font-size:8px;color:var(--muted);margin-bottom:4px}.profile-grid strong{display:block;font-size:10px;overflow-wrap:anywhere}.customer-messages{overflow:auto;padding:20px;background:#fafaf7}.customer-round{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}.customer-round:last-child{border:0}.customer-round>time{display:block;font-size:9px;color:#9da59f;margin-bottom:9px}.customer-message{display:grid;grid-template-columns:58px 1fr;gap:9px;margin:8px 0}.customer-message span{font-size:9px;color:var(--muted);padding-top:2px}.customer-message p{margin:0;font-size:11px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.customer-message.customer p{font-weight:650}.feedback-mark{font-size:9px;color:var(--green);margin-left:5px}.detail-profile{display:block;color:var(--muted);font-size:9px;margin-top:7px;max-width:480px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1000px){.analytics-grid{grid-template-columns:1fr}.customer-layout{grid-template-columns:1fr;height:auto}.customer-list-panel{height:340px}.customer-detail-panel{height:680px}}
@media(max-width:760px){.daily-chart{padding:16px 12px}.customer-detail-panel{height:620px}.profile-grid{grid-template-columns:1fr}}
.product-card.offline{background:#fafaf7;border-color:#dfe1dc;box-shadow:none}.product-card.offline h3,.product-card.offline dl{opacity:.68}.product-state{font-size:10px;font-weight:750;border-radius:8px;padding:6px 9px;white-space:nowrap}.product-state.online{color:var(--green);background:var(--green-soft)}.product-state.offline{color:#7a827d;background:#eceeea}.product-card footer{flex-wrap:wrap}.product-card footer>*{min-width:62px}.product-card footer .status-down{color:var(--red);background:#fff7f5}.product-card footer .status-up{color:var(--green);background:var(--green-soft);border-color:#cfe4d6}.modal select{border:1px solid #dcded7;background:#fff;border-radius:12px;padding:13px 14px;outline:0}
