@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");:root{color-scheme:dark;--bg:#090d16;--surface:#101725;--surface2:#141e2e;--line:#202c3d;--text:#e9eef7;--muted:#8d9bb0;--blue:#648cff;--blue2:#4774ef;--green:#43c99a;--amber:#e9b765}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:DM Sans,sans-serif}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:258px;background:#0d1420;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:23px 15px 15px;z-index:20}.brand{height:43px;display:flex;align-items:center;gap:10px;padding:0 8px;font:800 16px Manrope,sans-serif;letter-spacing:-.5px}.brand-mark{height:30px;width:30px;border-radius:10px;background:linear-gradient(135deg,#6e91ff,#6b55d9);display:grid;place-items:center;color:white}.brand-light{color:#91a2bd;font-weight:500}.workspace-switch{display:flex;align-items:center;gap:10px;margin:28px 0 24px;padding:11px;background:#141e2c;border:1px solid #26344a;border-radius:12px}.avatar,.top-avatar,.workspace-avatar{display:grid;place-items:center;flex-shrink:0;background:#263b60;color:#bcd0ff;border-radius:9px;font-weight:700}.workspace-avatar{width:32px;height:32px}.user-row div:nth-child(2),.workspace-switch div:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1 1}.user-row b,.workspace-switch b{font-size:12px}.user-row small,.workspace-switch small{font-size:10px;color:var(--muted)}.workspace-switch>svg{color:var(--muted)}nav{overflow:auto;flex:1 1}.nav-group{margin-bottom:22px}.nav-group>small{display:block;color:#697991;font-size:9px;letter-spacing:1.2px;font-weight:700;padding:0 10px 9px}.nav-item{width:100%;display:flex;align-items:center;gap:11px;padding:10px;border:0;background:transparent;color:#a9b6c9;text-align:left;border-radius:9px;font-size:12px;margin:2px 0}.nav-item svg{color:#8192aa}.nav-item:hover{background:#172337;color:white}.nav-item.active{background:#1b2c49;color:#dce7ff;box-shadow:inset 2px 0 #7095ff}.nav-item.active svg{color:#82a2ff}.nav-item em{font-style:normal;font-size:8px;color:#9fbcff;background:#273d68;border-radius:4px;padding:3px 5px;margin-left:auto}.sidebar-bottom{border-top:1px solid var(--line);padding-top:13px}.security-note{display:flex;gap:9px;align-items:center;background:#11251f;border:1px solid #1b3b31;padding:10px;border-radius:9px;color:#68d4ad;margin-bottom:13px}.security-note span{display:flex;flex-direction:column;gap:3px}.security-note b{font-size:10px}.security-note small{font-size:9px;color:#83ad9e}.user-row{display:flex;align-items:center;gap:9px;padding:5px 3px}.user-avatar{width:30px;height:30px}.user-row>svg{color:var(--muted)}.main-area{margin-left:258px;min-height:100vh}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:#0b111c}.breadcrumbs,.top-actions{display:flex;align-items:center;gap:10px}.breadcrumbs{font-size:12px;color:#8391a6}.breadcrumbs b{color:#e4eaf4;font-weight:600}.top-actions{gap:19px}.system-status{font-size:10px;color:#9cabc0;display:flex;align-items:center;gap:8px}.system-status span{width:7px;height:7px;border-radius:50%;background:var(--amber);box-shadow:0 0 9px #e9b76566}.help-button,.mobile-close,.mobile-menu{background:none;border:0;color:#9aa9bd;padding:5px}.top-avatar{width:31px;height:31px;border-radius:50%;font-size:10px}.page-content{max-width:1440px;margin:auto;padding:34px 36px 18px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:23px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#7f96bb;margin-bottom:10px}.eyebrow span{color:#52647e}.page-heading h1{font:800 29px Manrope,sans-serif;letter-spacing:-1px;margin:0 0 7px}.page-heading p,.panel-head p{margin:0;color:var(--muted);font-size:12px}.pill{display:inline-flex;align-items:center;border-radius:20px;padding:5px 9px;font-size:9px;font-weight:600;white-space:nowrap}.warning{background:#33291b;color:#e6bb74;border:1px solid #554126}.muted{background:#1b2636;color:#9aabc1;border:1px solid #2b394d}.notice{display:flex;align-items:center;gap:10px;border:1px solid #293c60;background:#121f34;color:#9fb7e5;border-radius:9px;padding:10px 13px;font-size:10px;margin-bottom:22px}.notice svg{flex-shrink:0}.notice span{flex:1 1}.notice button{border:0;background:none;color:#8fa4c7;padding:2px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:14px;gap:14px;margin-bottom:17px}.panel,.stat-card{background:linear-gradient(145deg,#121b2a,#101725);border:1px solid var(--line);border-radius:13px}.stat-card{padding:17px 18px}.stat-top{display:flex;justify-content:space-between;color:#a1afc2;font-size:11px}.stat-top svg{color:#7898e9}.stat-card strong{display:block;font:800 27px Manrope,sans-serif;margin:15px 0 3px}.stat-card>small{font-size:10px;color:#7889a1}.dashboard-grid{display:grid;grid-template-columns:1.25fr .85fr;grid-gap:16px;gap:16px;margin-bottom:16px}.panel{padding:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:19px}.panel h2,.panel-head h2{font:700 15px Manrope,sans-serif;margin:0 0 6px}.panel-head p{font-size:10px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.quick-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;background:#151f30;border:1px solid #27354a;border-radius:10px;color:var(--text);text-align:left}.agent-card:hover,.quick-card:hover{border-color:#526da5;background:#19263a}.agent-icon,.flow-symbol,.integration-mark,.quick-icon{display:grid;place-items:center;width:34px;height:34px;background:#20365e;color:#8eacff;border-radius:9px}.quick-card b{font-size:11px}.quick-card small{font-size:9px;color:var(--muted)}.quick-card>svg{position:absolute;right:12px;top:17px;color:#71839c}.health-panel{padding-bottom:12px}.health-row{display:flex;align-items:center;gap:9px;padding:11px 0;border-top:1px solid #202c3d;font-size:10px}.health-row small{margin-left:auto;color:#8999af;font-size:9px}.health-dot{width:7px;height:7px;border-radius:50%;background:#d5a45d}.health-dot.good{background:var(--green);box-shadow:0 0 8px #43c99a66}.activity-panel{margin-bottom:24px}.activity-empty{display:flex;align-items:center;gap:10px;color:#8192a8;background:#141e2c;border-radius:9px;padding:17px;font-size:10px}.activity-empty svg{color:#7898e9}footer{display:flex;justify-content:space-between;color:#65748a;font-size:9px;padding:8px 2px 18px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;padding:9px 13px;font-size:10px;font-weight:600}.primary{background:linear-gradient(135deg,#668dff,#4e70e8);color:white;border:1px solid #7294ff}.primary:hover{filter:brightness(1.1)}.secondary{background:#1a2739;border:1px solid #31435d;color:#b7c7df}.text-button{display:flex;align-items:center;gap:3px;background:none;border:0;color:#8faeff;font-size:10px}.agent-grid,.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px}.agent-card,.integration-card{border:1px solid #29364a;background:#151f2f;border-radius:11px;padding:15px}.agent-icon{margin-bottom:13px}.agent-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.agent-title b,.integration-card b{font-size:11px}.agent-card p{font-size:10px;color:var(--muted);min-height:28px}.card-foot{border-top:1px solid #2a3546;padding-top:10px;color:#a5b5cb;font-size:10px}.card-foot,.toolbar{display:flex;justify-content:space-between;align-items:center}.toolbar{margin-bottom:13px}.searchbox{display:flex;align-items:center;gap:8px;background:#0d1522;border:1px solid #2a394e;border-radius:8px;padding:8px 10px;color:#8192aa}.chat-compose input,.searchbox input{background:none;border:0;outline:0;color:var(--text);font-size:11px;width:220px}.contact-row{display:flex;align-items:center;gap:11px;padding:12px 4px;border-top:1px solid #253145}.contact-row .avatar{width:34px;height:34px;font-size:10px}.contact-row>div:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1 1}.contact-row b{font-size:11px}.contact-row small{font-size:9px;color:var(--muted)}.flow-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #273448}.flow-name{display:flex;flex-direction:column;gap:4px;flex:1 1}.flow-name b{font-size:11px}.flow-name small{font-size:9px;color:var(--muted)}.toggle{border:1px solid #39475b;background:#202b3b;color:#a7b4c6;border-radius:20px;padding:6px 13px;font-size:9px}.toggle.on{background:#12382e;border-color:#23674e;color:#75d9b5}.integration-card{display:flex;flex-direction:column;align-items:flex-start;gap:11px}.integration-mark{margin-bottom:2px}.integration-card .secondary{width:100%}.funnel-canvas{flex-direction:column;padding:10px 0 22px}.funnel-canvas,.funnel-step{display:flex;align-items:center}.funnel-step{width:min(100%,480px);gap:13px;background:#172337;border:1px solid #33445e;border-radius:9px;padding:13px;color:#d8e2f2;font-size:11px}.funnel-step span{color:#7f9fea;font-size:10px}.funnel-step b{flex:1 1;font-weight:600}.funnel-step>svg{color:#7d91b0}.placeholder{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.placeholder-icon{display:grid;place-items:center;width:55px;height:55px;background:#1d3153;color:#8eabff;border-radius:15px;margin-bottom:16px}.placeholder h2{font-size:17px}.placeholder>p{max-width:430px;line-height:1.6;color:var(--muted);font-size:11px}.placeholder-note{max-width:540px;margin-top:25px;padding:12px 15px;background:#141f2e;border:1px solid #2a3a50;border-radius:8px;color:#8798b0;font-size:9px;line-height:1.6}.chat-panel{height:560px;display:flex;flex-direction:column}.chat-messages{flex:1 1;overflow:auto;padding:10px 2px}.chat-messages,.empty-state{display:flex;flex-direction:column;gap:10px}.empty-state{margin:auto;align-items:center;color:#8fa9dd}.empty-state b{font-size:13px;color:#dce6f7}.empty-state span{font-size:10px;color:var(--muted)}.chat-compose{display:flex;gap:9px;background:#0d1522;border:1px solid #2a394e;border-radius:10px;padding:8px}.chat-compose input{flex:1 1;width:auto;padding:0 5px}.icon-button{width:36px;height:34px;padding:0}.bubble{max-width:75%;background:#172337;border:1px solid #2c3d56;padding:10px 12px;border-radius:10px}.bubble.user{align-self:flex-end;background:#1b3155;border-color:#38588b}.bubble small{font-size:9px;color:#91a9d1}.bubble p{font-size:11px;line-height:1.5;margin:5px 0 0}.modal-backdrop{position:fixed;inset:0;background:#030711bb;display:grid;place-items:center;z-index:60;padding:18px}.modal{width:min(100%,420px);background:#121c2b;border:1px solid #354761;border-radius:14px;padding:20px;box-shadow:0 20px 70px #0008}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.modal-head h3{font:700 15px Manrope;margin:0}.modal-head button{background:none;border:0;color:#9eacc0}.modal label{display:flex;flex-direction:column;gap:7px;font-size:10px;color:#aab9cd;margin-bottom:13px}.modal input,.modal select,.panel-head select{background:#0c1420;border:1px solid #34445c;border-radius:8px;padding:10px;color:#e8eef7;font-size:11px;outline:none}.modal input:focus,.modal select:focus{border-color:#7294ff}.full{width:100%;margin-top:5px}.mobile-close,.mobile-menu,.scrim{display:none}@media(max-width:1050px){.sidebar{width:230px}.main-area{margin-left:230px}.page-content{padding:28px 24px}.topbar{padding:0 24px}.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.agent-grid,.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .22s ease;width:275px;box-shadow:20px 0 50px #0007}.sidebar.open{transform:translateX(0)}.mobile-close{display:block;margin-left:auto}.scrim{display:block;position:fixed;inset:0;background:#0009;border:0;z-index:15}.main-area{margin-left:0}.topbar{height:58px;padding:0 15px}.mobile-menu{display:block}.breadcrumbs{margin-right:auto;margin-left:8px;font-size:10px}.top-actions{gap:10px}.system-status{font-size:0;gap:0}.system-status span{width:8px;height:8px}.help-button{display:none}.page-content{padding:23px 14px 15px}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:25px}.page-heading p{font-size:10px;line-height:1.5;max-width:270px}.heading-actions{padding-top:16px}.stats-grid{gap:9px}.stat-card{padding:13px}.stat-top{font-size:9px}.stat-card strong{font-size:23px;margin-top:12px}.stat-card>small{font-size:9px}.panel{padding:15px}.panel-head{align-items:flex-start;flex-wrap:wrap}.panel-head h2{font-size:14px}.panel-head p{line-height:1.5}.quick-grid{gap:8px}.quick-card{padding:11px}.quick-card small{line-height:1.4}.agent-grid,.integration-grid{grid-template-columns:1fr}.agent-card{padding:13px}.health-row{font-size:9px;gap:7px}.health-row small{font-size:8px}.activity-empty,.notice{font-size:9px;line-height:1.5}footer{flex-direction:column;gap:6px;font-size:8px}.chat-panel{height:calc(100vh - 245px);min-height:420px}.panel-head select{margin-left:auto}.searchbox{flex:1 1}.searchbox input{width:100%;min-width:0}.toolbar{gap:8px}.placeholder{min-height:340px}.funnel-step{font-size:9px;padding:12px 9px}.funnel-step span{font-size:8px}}.logout-form{display:flex;align-items:center}.logout-button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:transparent;color:#9aa9bd;cursor:pointer}.logout-button:hover{color:#fff;border-color:#7770ed;background:rgba(119,112,237,.1)}.integration-loading{display:flex;align-items:center;gap:12px;color:var(--muted);min-height:160px}.integration-card p{color:var(--muted);font-size:12px;line-height:1.55;min-height:38px}.integration-card small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.integration-actions{display:flex;gap:8px;flex-wrap:wrap}.integration-connect-form{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025);display:grid;grid-gap:14px;gap:14px}.integration-connect-form h3{margin:0;font-size:16px}.integration-connect-form label{display:grid;grid-gap:7px;gap:7px;color:var(--muted);font-size:12px}.integration-connect-form input{width:100%;min-width:0;padding:12px 13px;border:1px solid var(--line);border-radius:9px;background:#0c1220;color:#f4f6fb;outline:none}.integration-connect-form input:focus{border-color:#7770ed}.integration-security{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;line-height:1.5}.integration-alert{display:flex;align-items:flex-start;gap:9px;padding:11px 13px;border-radius:10px;margin:14px 0;font-size:12px;line-height:1.5}.integration-alert button{margin-left:auto;background:none;border:0;color:inherit;cursor:pointer}.integration-alert.error{background:rgba(220,70,70,.1);color:#ff9b9b;border:1px solid rgba(220,70,70,.2)}.integration-alert.success{background:rgba(48,180,120,.1);color:#8ce2b5;border:1px solid rgba(48,180,120,.2)}.integration-actions .danger{color:#e58b8b}.spin{animation:integration-spin 1s linear infinite}@keyframes integration-spin{to{transform:rotate(1turn)}}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 10px;border-bottom:1px solid var(--line)}.chat-provider-status{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;overflow-wrap:anywhere}.chat-provider-status>span{width:7px;height:7px;border-radius:50%;background:var(--green);flex-shrink:0}.chat-toolbar button:disabled{opacity:.4;cursor:not-allowed}.typing{display:flex;align-items:center;gap:8px;color:#9fb7e5}.chat-error{margin:8px 0 0}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:700px){.chat-toolbar{align-items:flex-start}.chat-provider-status{font-size:9px}}.agent-modal{width:min(100%,560px);max-height:88vh;overflow:auto}.agent-modal label small{color:#8293aa;font-size:9px;line-height:1.5}.agent-run-area{margin-top:17px;border-top:1px solid #2b394d;padding-top:14px}.agent-run-area h3{display:flex;align-items:center;gap:7px;font:700 12px Manrope,sans-serif;margin:0 0 12px}.agent-result{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;background:#0c1522;border:1px solid #2c3d56;border-radius:8px;padding:12px;color:#d8e6fa;font:11px/1.6 ui-monospace,monospace}.agent-history-head{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:12px;border-top:1px solid #26364a}.agent-runs{display:flex;flex-direction:column;gap:7px;max-height:170px;overflow:auto}.agent-run-row{display:flex;align-items:center;gap:8px;padding:8px 9px;background:#151f2f;border:1px solid #29364a;border-radius:7px;font-size:10px}.agent-run-row small{margin-left:auto;color:#8495ac;font-size:9px}@media(max-width:700px){.agent-modal{max-height:92vh;padding:15px}.agent-run-row{flex-wrap:wrap}.agent-run-row small{width:100%;margin-left:15px}}