:root{--bg: #f3f5fb;--panel: #ffffff;--border: #e5e8f2;--text: #0e1430;--muted: #6b7290;--brand: #2563ff;--brand-dark: #1d4ed8;--brand-2: #8a2be2;--accent: #00d4ff;--grad: linear-gradient(135deg, #8a2be2 0%, #2563ff 55%, #00d4ff 115%);--grad-soft: linear-gradient(135deg, rgba(138,43,226,.12), rgba(37,99,235,.12));--sidebar: #0c1026;--sidebar-active: rgba(255, 255, 255, .08);--ring: rgba(37, 99, 235, .35);font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button{font:inherit;cursor:pointer}a{color:inherit}h1,h2,h3,h4,.page-title,.brand,.metric .value,.login-card h1,.empty-title,.entity-name,.qr-success{font-family:Rajdhani,Montserrat,system-ui,sans-serif;letter-spacing:.01em}:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.login-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(1100px 560px at 50% -10%,#1b1147,#0a0a1f 60%,#07070f)}.login-card{background:var(--panel);padding:32px;border-radius:18px;width:360px;box-shadow:0 24px 70px #0a0a1f73;border-top:3px solid transparent;border-image:var(--grad) 1}.login-card h1{margin:0 0 4px;font-size:24px;font-weight:700}.login-card p{margin:0 0 20px;color:var(--muted);font-size:14px}.login-card input{width:100%;padding:12px;border:1px solid var(--border);border-radius:10px;margin-bottom:12px}.login-card input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--grad-soft)}.login-card button{width:100%;padding:12px;border:0;border-radius:10px;background:var(--grad);color:#fff;font-weight:600}.login-card button:disabled{opacity:.6}.login-card .err{color:#dc2626;font-size:13px;margin-bottom:12px}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,#0c1026,#150a2e 55%,#0b0a1f);color:#c9d2e6;display:flex;flex-direction:column;padding:18px 14px;gap:6px;position:relative}.sidebar:after{content:"";position:absolute;top:0;right:0;bottom:0;width:1px;background:linear-gradient(180deg,#8a2be280,#00d4ff59)}.brand{padding:6px 8px 18px}.brand-logo{display:flex;align-items:center;gap:10px}.brand-img{height:38px;width:auto;max-width:180px;object-fit:contain}.logo-mark-img{height:44px;width:auto;max-width:76px;object-fit:contain;mix-blend-mode:screen;flex-shrink:0}.logo-mark{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;background:var(--grad);color:#fff;font-weight:700;font-size:17px;font-family:Rajdhani,sans-serif;box-shadow:0 6px 18px #2563eb73}.logo-text{display:flex;flex-direction:column;line-height:1}.logo-text b{font-family:Rajdhani,sans-serif;font-weight:700;font-size:19px;letter-spacing:.06em;color:#fff}.logo-text b i{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}.brand small{display:block;color:#8a93ad;font-weight:500;font-size:11px;margin-top:10px;padding-left:2px}.nav-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;background:transparent;border:0;color:#c2cadf;width:100%;text-align:left;font-size:14px;font-weight:500;transition:background .15s,color .15s}.nav-item:hover{background:#ffffff0f;color:#fff}.nav-item.active{background:var(--grad);color:#fff;box-shadow:0 6px 16px #2563eb59}.nav-item .ic{width:18px;text-align:center}.sidebar .spacer{flex:1}.logout{color:#f2a9a9}.logout:hover{background:#dc262626;color:#fecaca}.content{padding:24px 28px;overflow:auto;max-height:100vh}.page-title{margin:0 0 18px;font-size:24px;font-weight:700}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.metric{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px 18px;box-shadow:0 1px 2px #0e14300a}.metric .label{color:var(--muted);font-size:13px;font-weight:500}.metric .value{font-size:32px;font-weight:700;margin-top:6px;line-height:1.05}.metric .sub{color:var(--muted);font-size:12px;margin-top:2px}.section{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:18px;margin-top:18px;box-shadow:0 1px 2px #0e14300a}.section h3{margin:0 0 14px;font-size:16px;font-weight:600}.chart{display:flex;align-items:flex-end;gap:12px;height:180px;padding-top:10px}.chart .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}.chart .bars{display:flex;gap:4px;align-items:flex-end;height:100%;width:100%;justify-content:center}.chart .bar{width:14px;border-radius:4px 4px 0 0;background:var(--brand);transition:height .3s}.chart .bar.alt{background:var(--brand-2)}.chart .x{font-size:11px;color:var(--muted)}.legend{display:flex;gap:16px;font-size:12px;color:var(--muted);margin-top:10px}.legend span{display:inline-flex;align-items:center;gap:6px}.dot{width:10px;height:10px;border-radius:3px;display:inline-block}.board{display:flex;gap:14px;overflow-x:auto;padding-bottom:10px}.column{background:#eceff7;border-radius:14px;min-width:270px;width:270px;display:flex;flex-direction:column;max-height:calc(100vh - 130px)}.column.drag-over{outline:2px dashed var(--brand);outline-offset:-4px}.column h4{margin:0;padding:14px 14px 10px;font-size:13px;display:flex;justify-content:space-between}.column h4 .count{background:#d4dbec;color:#43507a;border-radius:999px;padding:1px 8px;font-size:11px}.column .col-body{padding:0 10px 10px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.kcard{background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px;cursor:grab;box-shadow:0 1px 2px #0e14300d}.kcard:active{cursor:grabbing}.kcard .name{font-weight:600;font-size:14px}.kcard .company{color:var(--muted);font-size:12px}.kcard .tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.tag{font-size:11px;padding:2px 8px;border-radius:999px;background:#e8edff;color:#2440b0}.tag.hot{background:#fee2e2;color:#991b1b}.kcard .last{color:var(--muted);font-size:12px;margin-top:8px;border-top:1px solid var(--border);padding-top:8px}.kcard .open{margin-top:8px;font-size:12px;color:var(--brand-dark);background:none;border:0;padding:0;font-weight:600}.inbox{display:grid;grid-template-columns:320px 1fr;gap:0;height:calc(100vh - 48px);border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--panel)}.conv-list{border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.conv-search{padding:12px;border-bottom:1px solid var(--border)}.conv-search input{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:10px}.conv-scroll{overflow-y:auto;flex:1;min-height:0}.conv-item{padding:12px 14px;border-bottom:1px solid #f1f3f9;cursor:pointer}.conv-item:hover{background:#f6f8fd}.conv-item.active{background:#eef3ff;box-shadow:inset 3px 0 0 var(--brand)}.conv-item .top{display:flex;justify-content:space-between;align-items:center}.conv-item .nm{font-weight:600;font-size:14px}.conv-item .tm{color:var(--muted);font-size:11px}.conv-item .pv{color:var(--muted);font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pill{font-size:10px;padding:1px 7px;border-radius:999px;background:#e6edff;color:#1e40af}.pill.human{background:#fef3c7;color:#92400e}.chat{display:flex;flex-direction:column;height:100%;min-height:0}.chat-head{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.chat-head .who{font-weight:600}.chat-head .ph{color:var(--muted);font-size:12px}.chat-body{flex:1;min-height:0;overflow-y:auto;padding:18px;background:#f6f8fd;display:flex;flex-direction:column;gap:10px}.bubble{max-width:70%;padding:9px 13px;border-radius:14px;font-size:14px;line-height:1.4;white-space:pre-wrap}.bubble.USER{background:#fff;border:1px solid var(--border);align-self:flex-start;border-bottom-left-radius:4px}.bubble.ASSISTANT{background:#e0e9ff;align-self:flex-end;border-bottom-right-radius:4px}.bubble.HUMAN{background:#dcfce7;align-self:flex-end;border-bottom-right-radius:4px}.bubble .t{display:block;font-size:10px;color:var(--muted);margin-top:4px}.chat-foot{padding:12px;border-top:1px solid var(--border);display:flex;gap:8px;align-items:flex-end}.chat-foot textarea{flex:1;resize:none;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font:inherit;max-height:120px}.btn{padding:10px 16px;border:0;border-radius:10px;background:var(--brand);color:#fff;font-weight:600;transition:filter .15s,background .15s}.btn:hover{background:var(--brand-dark)}.btn.sec{background:#eef1f8;color:#3a4366}.btn.sec:hover{background:#e2e7f3}.btn.danger,.btn.sec.danger{background:#fde8e8;color:#b42318}.btn:disabled{opacity:.5;cursor:not-allowed}.note{background:linear-gradient(0deg,#2563eb0d,#2563eb0d),#fff;border:1px solid #d7e0fb;color:#2b3a72;font-size:12px;padding:8px 12px;border-radius:10px}.empty{display:grid;place-items:center;height:100%;color:var(--muted)}.loading{color:var(--muted);padding:20px}@media (max-width: 860px){.shell{grid-template-columns:64px 1fr}.brand small,.logo-text,.nav-item span:not(.ic),.nav-group-title{display:none}.inbox{grid-template-columns:1fr}}.sidebar{overflow:hidden}.nav-scroll{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:2px}.nav-scroll::-webkit-scrollbar{width:6px}.nav-scroll::-webkit-scrollbar-thumb{background:#ffffff1f;border-radius:999px}.nav-group{margin-bottom:10px}.nav-group-title{color:#6f7895;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:8px 12px 4px}.sidebar .spacer{flex:0}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;flex-wrap:wrap}.page-head .page-title{margin:0;display:flex;align-items:center;gap:10px}.page-sub{margin:4px 0 0;color:var(--muted);font-size:13px}.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.counter-badge{font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;background:#e6edff;color:#1e40af}.counter-badge.full{background:#fee2e2;color:#991b1b}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:18px;flex-wrap:wrap}.tab{padding:9px 14px;border:0;background:none;color:var(--muted);font-size:14px;font-weight:500;border-bottom:2px solid transparent;margin-bottom:-1px}.tab:hover{color:var(--text)}.tab.active{color:var(--brand-dark);border-bottom-color:var(--brand);font-weight:700}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px}.section-head h3{margin:0;font-size:16px}.section-actions{display:flex;gap:8px}.metric.accent-green{border-left:3px solid #16a34a}.metric.accent-blue{border-left:3px solid var(--brand)}.metric.accent-amber{border-left:3px solid #f59e0b}.metric.accent-red{border-left:3px solid #ef4444}.metric.accent-slate{border-left:3px solid var(--brand-2)}.empty-state{text-align:center;padding:48px 24px;background:var(--panel);border:1px dashed var(--border);border-radius:14px}.empty-ic{font-size:44px}.empty-title{font-size:18px;font-weight:700;margin-top:10px}.empty-text{color:var(--muted);font-size:14px;margin:8px auto 0;max-width:460px;line-height:1.5}.empty-action{margin-top:18px}.checking{display:flex;align-items:center;gap:10px;color:var(--muted);padding:8px}.spinner{width:16px;height:16px;border:2px solid var(--border);border-top-color:var(--brand);border-radius:50%;display:inline-block;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-box{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:10px 14px;border-radius:10px;font-size:13px;margin-bottom:14px}.muted{color:var(--muted)}.small{font-size:12px}.right{text-align:right}.row-gap{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.btn.danger-btn{background:#b91c1c;color:#fff}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.toolbar .spacer{flex:1}.toolbar .search,.toolbar select,.search{padding:8px 12px;border:1px solid var(--border);border-radius:10px;font:inherit;background:#fff}.toolbar select:focus,.search:focus,input:focus,textarea:focus,select:focus{border-color:var(--brand);outline:none}.search{min-width:220px}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.entity-card{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:8px;box-shadow:0 1px 2px #0e14300a}.entity-top{display:flex;justify-content:space-between;align-items:center}.entity-name{font-weight:700;font-size:16px}.entity-desc{color:var(--muted);font-size:13px;line-height:1.4}.entity-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.entity-actions{display:flex;gap:12px;margin-top:auto;padding-top:10px;border-top:1px solid var(--border);flex-wrap:wrap}.link-btn{background:none;border:0;color:var(--brand-dark);font-size:13px;font-weight:600;padding:0}.link-btn:hover{text-decoration:underline}.link-btn.danger{color:#dc2626}.tag.muted{background:#eef1f8;color:#94a3b8}.status-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.status-dot.on{background:#22c55e;box-shadow:0 0 0 3px #dcfce7}.status-dot.off{background:#cbd5e1}.pill.status-online{background:#dcfce7;color:#166534}.pill.status-offline{background:#eef1f8;color:#64748b}.pill.status-connecting{background:#fef9c3;color:#854d0e}.pill.status-error{background:#fee2e2;color:#991b1b}.field{display:block;margin-bottom:12px}.field-label{display:block;font-size:12px;color:#46506f;margin-bottom:4px;font-weight:600}.field input,.field select,.field textarea{width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid var(--border);border-radius:9px;font:inherit;background:#fff}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--grad-soft)}.field textarea{resize:vertical}.field-hint{display:block;font-size:11px;color:var(--muted);margin-top:3px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.checkbox-row{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:6px}.checkbox-row input{width:auto}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0a1f8c;display:grid;place-items:center;z-index:50;padding:20px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:var(--panel);border-radius:16px;width:520px;max-width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 28px 70px #0a0a1f66}.modal.wide{width:680px}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-head h3{margin:0;font-size:17px}.modal-x{background:none;border:0;font-size:24px;color:var(--muted);line-height:1}.modal-body{padding:18px 20px;overflow-y:auto}.modal-foot{padding:14px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px;align-items:center}.data-table{width:100%;border-collapse:collapse;font-size:14px}.data-table th{text-align:left;color:var(--muted);font-size:12px;font-weight:600;padding:8px 10px;border-bottom:1px solid var(--border)}.data-table td{padding:11px 10px;border-bottom:1px solid #f1f3f9;vertical-align:top}.data-table tr:hover td{background:#f6f8fd}.data-table .link-btn+.link-btn{margin-left:10px}.sim-body{display:flex;flex-direction:column;gap:8px;min-height:220px;max-height:50vh;overflow-y:auto;padding:6px;background:#f6f8fd;border-radius:10px;margin-bottom:10px}.sim-hint{color:var(--muted);font-size:13px;text-align:center;padding:20px}.funnel{display:flex;flex-direction:column;gap:6px}.funnel-step{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:12px;position:relative}.funnel-arrow{grid-column:2;font-size:11px;color:var(--muted);padding-left:4px}.funnel-bar-wrap{background:#eef1f8;border-radius:8px;overflow:hidden}.funnel-bar{background:var(--grad);color:#fff;padding:8px 12px;border-radius:8px;min-width:36px;font-weight:700;font-size:13px;display:flex;justify-content:flex-end;transition:width .4s}.funnel-label{grid-column:1;grid-row:span 1;font-size:13px;color:var(--text);font-weight:500}.bottleneck{margin-top:14px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;padding:10px 14px;border-radius:10px;font-size:13px}.heatmap{font-size:10px;overflow-x:auto}.heatmap-hours,.heatmap-row{display:grid;grid-template-columns:36px repeat(24,1fr);gap:2px;align-items:center}.heatmap-row{margin-top:2px}.heatmap-hour{color:var(--muted);text-align:center}.heatmap-day{color:var(--muted);font-weight:600}.heatmap-cell{height:16px;border-radius:3px}.calc-wrap{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}@media (max-width: 900px){.calc-wrap,.form-grid{grid-template-columns:1fr}}.copilot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-bottom:20px}.copilot-tile{text-align:left;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:4px;transition:border-color .15s,box-shadow .15s}.copilot-tile:hover{border-color:var(--brand)}.copilot-tile.active{border-color:var(--brand);box-shadow:0 0 0 3px var(--grad-soft)}.copilot-ic{font-size:22px}.copilot-name{font-weight:600;font-size:14px}.copilot-desc{color:var(--muted);font-size:12px;line-height:1.4}.copilot-input{width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--border);border-radius:10px;font:inherit;resize:vertical}.copilot-output{white-space:pre-wrap;background:#f6f8fd;border:1px solid var(--border);border-radius:10px;padding:14px;margin-top:14px;font-size:14px;line-height:1.55}.copilot-history{display:flex;flex-direction:column;gap:8px}.hist-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 10px;background:#f6f8fd;border-radius:8px}.hist-input{font-size:13px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.tool-card{text-align:left;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:4px}.tool-card:hover{border-color:var(--brand)}.tool-ic{font-size:24px}.tutorial-list{display:flex;flex-direction:column;gap:10px}.tutorial-item{display:flex;gap:12px;align-items:center}.tutorial-num{width:28px;height:28px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px;flex-shrink:0}.goal-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f1f3f9}.goal-row:last-child{border-bottom:0}.lead-bar{display:flex;align-items:center;gap:14px;padding:8px 16px;border-bottom:1px solid var(--border);background:#f8faff;flex-wrap:wrap}.lead-stage{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.lead-stage select,.mini-select{padding:5px 8px;border:1px solid var(--border);border-radius:8px;font:inherit;font-size:13px;background:#fff}.token-cell{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;background:#eef1f8;padding:2px 6px;border-radius:6px;margin-right:8px}.token-box{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;word-break:break-all;background:#0c1026;color:#67e8f9;padding:12px 14px;border-radius:10px;margin:12px 0}.chip-checks{display:flex;flex-wrap:wrap;gap:8px}.chip-check{padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:#fff;font-size:13px;color:var(--text)}.chip-check.on{background:var(--brand);color:#fff;border-color:var(--brand)}.qr-wrap{text-align:center;padding:6px 4px}.qr-img{width:260px;height:260px;border:1px solid var(--border);border-radius:12px;padding:8px;background:#fff}.qr-steps{text-align:left;margin:14px auto 4px;max-width:360px;color:var(--text);font-size:14px;line-height:1.7;padding-left:22px}.qr-success{font-size:22px;font-weight:700;color:var(--brand-dark);margin:8px 0 6px}.automation-list{display:flex;flex-direction:column}.automation-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #f1f3f9}.automation-row:last-child{border-bottom:0}.toggle{width:42px;height:24px;border-radius:999px;background:#cbd5e1;border:0;position:relative;flex-shrink:0;transition:background .15s;cursor:pointer}.toggle.on{background:var(--brand)}.toggle .knob{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px #0000004d}.toggle.on .knob{left:21px}
