@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--green:#146955;--dark:#103b34;--ink:#22362f;--muted:#7a8781;--border:#e5eae6;--bg:#f5f7f4;--lime:#d9edab;--white:#fff;--red:#b54f4f}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-color:#409477}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:Manrope,sans-serif}h1{font-size:28px;letter-spacing:-1px;font-weight:750}h2{font-size:16px;letter-spacing:-.3px}h3{font-size:15px}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--dark);color:#d1e0d8;padding:30px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:230px}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;color:white;letter-spacing:-.7px;padding:0 12px}.brandmark{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:var(--lime);color:#244536;font-size:23px}.workspace{display:flex;align-items:center;gap:10px;margin:35px 5px 24px;padding:13px 10px;border:1px solid #35594e;border-radius:9px;font-size:12px}.workspace b{display:block;color:#fff;font-size:13px}.workspace .square{background:#2e5549;border-radius:6px;padding:7px}.nav-label{font-size:10px;color:#8ca99c;letter-spacing:1.6px;margin:14px 14px 10px}.nav{border:0;background:none;color:#b9d0c4;display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 14px;border-radius:7px;margin:3px 0;font-size:13px}.nav svg{width:18px;height:18px}.nav.active{background:var(--lime);color:#234637;font-weight:700}.nav:hover:not(.active){background:#214c40}.nav .count{margin-left:auto;background:#244f42;color:#cfe5d9;border-radius:5px;padding:2px 6px;font-size:10px}.sidebar-bottom{margin-top:auto}.secure{background:#19463c;border:1px solid #31594a;border-radius:9px;padding:16px 12px;margin:26px 4px 17px;font-size:11px;line-height:1.7;color:#aac7b7}.secure strong{display:block;color:#e0eade;font-size:12px;margin-bottom:5px}.profile{border-top:1px solid #315347;padding:18px 7px 0;display:flex;align-items:center;gap:10px}.avatar{width:35px;height:35px;background:#edf1ea;color:#6f8266;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0}.profile .avatar{background:#62846d;color:#fff}.profile b{font-size:12px;color:#fff;display:block}.profile small{font-size:10px;color:#a2bfae}.profile button{margin-left:auto;color:#a8c5b4}.main{grid-column:2;min-width:0}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 36px}.crumb{font-size:12px;color:var(--muted)}.crumb b{color:#384c42;font-weight:500}.top-actions{display:flex;align-items:center;gap:19px;font-size:11px;color:#6c7c71}.icon-button{border:0;background:transparent;padding:5px;display:inline-flex;align-items:center;justify-content:center;color:inherit}.icon-button svg{width:18px;height:18px}.tag{display:inline-flex;align-items:center;gap:5px;font-size:10px;border-radius:5px;padding:5px 7px;white-space:nowrap}.tag.green{color:#39795c;background:#edf6ef}.tag.amber{color:#aa803b;background:#fbf3e3}.tag.gray{color:#7d8981;background:#f0f3ef}.tag.red{color:#b54f4f;background:#fbeeed}.dot{width:5px;height:5px;border-radius:50%;background:currentColor;display:inline-block}.content{padding:32px 36px 24px;max-width:1660px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#718778;margin-bottom:8px}.sub{font-size:12px;color:var(--muted);line-height:1.7;margin-top:8px}.button{background:var(--green);color:#fff;border:1px solid var(--green);padding:10px 15px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:600;white-space:nowrap}.button svg{width:16px;height:16px}.button:hover{background:#0e5746}.button.secondary{background:#fff;border-color:var(--border);color:#526358}.button.secondary:hover{background:#f1f5ef}.button.danger{background:#fff5f4;border-color:#efdbd8;color:#a54949}.button.small{padding:7px 10px;font-size:11px}.heading-actions{display:flex;gap:8px}.notice{display:flex;align-items:center;gap:9px;font-size:11px;color:#60755b;border:1px solid #dfe8d5;background:#f0f5e9;border-radius:8px;padding:11px 14px;margin-bottom:23px;line-height:1.6}.notice svg{width:16px;height:16px;flex-shrink:0}.notice a,.notice button{margin-left:auto;color:#46724e;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--border);border-radius:10px;padding:19px 20px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#78857b;font-size:11px}.stat-icon{display:grid;place-items:center;background:#f1f5ee;color:#648261;border-radius:7px;width:29px;height:29px}.stat-icon svg{width:15px;height:15px}.stat-value{font-family:Manrope,sans-serif;font-size:30px;font-weight:750;letter-spacing:-1px;margin:9px 0}.stat-foot{font-size:10px;color:#8a958c}.stat-foot b{font-weight:500;color:#578662}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:21px;margin-bottom:22px}.card{border:1px solid var(--border);border-radius:11px;background:white;overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;gap:12px}.card-head small{display:block;font-size:10px;color:#879288;margin-top:6px}.text-link{background:none;border:0;color:#42745c;font-size:11px;display:flex;align-items:center;gap:6px}.text-link svg{width:14px;height:14px}.chart{padding:0 22px 20px}.chart svg{width:100%;height:180px;display:block;overflow:visible}.chart text{font-family:'DM Sans',sans-serif;fill:#9aa49a;font-size:10px}.legend{display:flex;gap:18px;justify-content:center;font-size:10px;color:#849083}.legend span:before{content:'';display:inline-block;width:7px;height:7px;background:#347c5b;border-radius:2px;margin-right:7px}.legend span:last-child:before{background:#c8dcb1}.distribution{padding:0 22px 17px}.dist-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0f2ed}.dist-row:last-child{border:0}.dist-row .avatar{width:30px;height:30px}.dist-info{flex:1;min-width:0}.dist-info b{font-size:11px;font-weight:600;display:block}.dist-info small{font-size:10px;color:#8b968c;display:block;margin-top:3px}.bar{width:75px;height:5px;border-radius:5px;background:#eff2eb;overflow:hidden}.bar span{display:block;height:100%;background:#94b277;border-radius:5px}.dist-number{font-size:11px;color:#4c6450;width:20px;text-align:right}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#90998e;background:#fafbf8;padding:12px 22px;font-weight:500;border-top:1px solid #edf0e9;border-bottom:1px solid #edf0e9}td{padding:15px 22px;border-bottom:1px solid #eef1ea;font-size:11px;color:#68786a}tr:last-child td{border-bottom:0}td b{font-weight:600;color:#354f3c}.person{display:flex;gap:10px;align-items:center}.person small{font-size:10px;color:#939c91;display:block;margin-top:4px}.person .avatar{width:31px;height:31px}.footer{display:flex;justify-content:space-between;color:#9aa397;font-size:10px;margin-top:22px}.toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 21px;border-bottom:1px solid var(--border);gap:12px}.search{position:relative;max-width:300px;width:100%}.search input{width:100%;border:1px solid var(--border);border-radius:7px;padding:10px 12px 10px 34px;background:#fff;font-size:11px}.search svg{position:absolute;top:11px;left:12px;width:14px;height:14px;color:#8d9a8e}.filters{display:flex;gap:6px}.filter{border:1px solid var(--border);background:#fff;color:#7a887c;border-radius:6px;padding:7px 10px;font-size:10px}.filter.active{border-color:#bdd1b0;background:#f0f6e9;color:#4d7542}.empty{text-align:center;color:#8a978c;padding:45px 20px;line-height:1.9;font-size:12px}.lines-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.line-card{padding:22px}.line-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.line-symbol{width:42px;height:42px;border-radius:11px;background:#edf4e8;display:grid;place-items:center;color:#659157}.line-symbol svg{width:22px;height:22px}.line-card h3{font-size:14px}.line-phone{font-size:12px;color:#81917f;margin:7px 0 25px}.line-owner{border-top:1px solid var(--border);padding-top:17px}.line-owner label{font-size:10px;color:#879584;display:block;margin-bottom:9px}.line-owner select{width:100%;border:1px solid var(--border);border-radius:6px;padding:10px;background:#fafcf8;color:#50634d;font-size:12px}.line-note{font-size:10px;color:#9aab91;margin-top:15px;line-height:1.6}.inbox{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100vh - 250px);min-height:500px}.thread-list{border-right:1px solid var(--border);overflow:auto}.thread-list .search{padding:15px;max-width:none}.thread-list .search svg{left:27px;top:26px}.thread-item{display:block;width:100%;border:0;border-bottom:1px solid #edf0e8;background:#fff;text-align:left;padding:18px;color:#496244}.thread-item.active{background:#edf4e7;border-left:3px solid #45825c;padding-left:15px}.thread-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}.thread-meta b{font-size:12px}.thread-meta time{font-size:9px;color:#94a08e}.thread-item p{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:9px 0;color:#7f8d7b}.thread-item small{font-size:9px;color:#96a18e}.chat{display:flex;flex-direction:column;min-width:0;background:#f8faf5}.chat-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;background:white;border-bottom:1px solid var(--border);gap:10px}.chat-head b{font-size:12px}.chat-head small{font-size:10px;color:#90a083;display:block;margin-top:5px}.chat-messages{flex:1;overflow:auto;padding:28px;display:flex;flex-direction:column;gap:18px}.date-label{text-align:center;font-size:10px;color:#99a48e}.bubble{max-width:80%;border:1px solid #e5eade;border-radius:0 12px 12px 12px;padding:14px 16px;background:white;font-size:12px;line-height:1.8;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.out{align-self:flex-end;background:#e6efdd;border-color:#dce8d0;border-radius:12px 0 12px 12px}.bubble small{display:block;text-align:right;color:#8b9a7f;font-size:9px;margin-top:5px}.composer{padding:15px 20px;background:white;border-top:1px solid var(--border)}.composer form{display:flex;gap:10px}.composer textarea{resize:none;border:1px solid var(--border);border-radius:7px;background:#fbfcf8;padding:12px;flex:1;min-width:0;height:45px;font-size:12px}.composer small{font-size:9px;color:#97a18d;display:block;margin-top:8px}.audit-row{padding:18px 22px;display:flex;gap:14px;border-bottom:1px solid var(--border);align-items:center}.audit-row .stat-icon{flex-shrink:0}.audit-row b{display:block;font-size:12px}.audit-row small{display:block;font-size:10px;color:#929c8e;margin-top:5px}.audit-row time{margin-left:auto;color:#909e88;font-size:10px;white-space:nowrap}dialog{border:1px solid var(--border);border-radius:14px;padding:28px;width:440px;max-width:calc(100% - 30px);color:var(--ink);box-shadow:0 24px 100px #0f362b25}dialog::backdrop{background:#0b29287d;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.modal-head h2{font-size:20px}.form-field{display:block;margin:18px 0;font-size:11px;color:#71806a}.form-field input,.form-field select{display:block;width:100%;padding:12px;border:1px solid #dfe6d9;border-radius:7px;margin-top:7px;background:#fff;color:#344c31}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.error{color:#b34f4f;font-size:12px;margin-top:12px;line-height:1.7}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#153f32;color:#fff;padding:13px 22px;border-radius:8px;font-size:12px;box-shadow:0 5px 20px #09251d25;z-index:10;display:none}.login{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-visual{background:var(--dark);padding:55px;display:flex;flex-direction:column;color:#fff;overflow:hidden;position:relative}.login-visual:after{content:'';position:absolute;border:1px solid #5f806040;width:650px;height:650px;border-radius:50%;right:-230px;bottom:-200px;box-shadow:0 0 0 100px #5f806010,0 0 0 200px #5f806008}.login-visual .brand{padding:0}.login-copy{margin:auto 0;z-index:1;max-width:430px}.login-copy .eyebrow{color:#b7d99f}.login-copy h1{font-size:45px;line-height:1.25;letter-spacing:-1.6px;margin:20px 0}.login-copy p{color:#a8c7b5;font-size:14px;line-height:1.9}.login-visual footer{font-size:11px;color:#91b59f;z-index:1}.login-panel{display:grid;place-items:center;padding:35px}.login-form{max-width:360px;width:100%}.login-form h2{font-size:25px}.login-form .button{width:100%;padding:13px;margin-top:5px}.demo-access{margin-top:25px;padding:17px;border:1px dashed #cfdbc3;border-radius:8px;font-size:11px;color:#76866b;line-height:1.9}.demo-access b{display:block;color:#4e6941}.demo-access button{border:0;background:transparent;color:#387853;font-size:11px;padding:5px 0}.login-note{font-size:10px;color:#9aa48f;line-height:1.8;margin-top:22px}.mini-cards{display:flex;gap:15px;margin-top:34px}.mini-card{background:#ffffff0c;border:1px solid #ffffff18;border-radius:10px;padding:18px;min-width:120px}.mini-card b{display:block;color:#d9edab;font-size:24px;margin-bottom:5px}.mini-card span{font-size:10px;color:#a5c3ae}.mobile-brand{display:none}.settings-card{padding:25px;max-width:700px}.settings-row{display:flex;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--border);font-size:12px}.settings-row span{color:#87947e}.settings-row b{text-align:right;font-weight:500}.demo-strip{font-size:10px;padding:7px 14px;background:#e9efdF;color:#708259;text-align:center}.performance-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.performance-cards .stat-value{font-size:25px}.metric-help{padding:16px 22px;background:#fafbf7;color:#93a086;font-size:10px;line-height:1.8}.badge-num{padding:2px 5px;border-radius:4px;background:#4b8053;color:white;font-size:9px}.menu-toggle{display:none}.busy{pointer-events:none;opacity:.6}
@media(min-width:1450px){.content{padding-top:40px}.chart svg{height:215px}.stat{padding:24px}.dashboard-grid{gap:24px}}
@media(max-width:1150px){.layout{grid-template-columns:200px minmax(0,1fr)}.sidebar{width:200px;padding:25px 12px}.brand{font-size:20px}.content{padding:25px 22px}.topbar{padding:0 22px}.stats{gap:10px}.stat{padding:15px}.dashboard-grid{grid-template-columns:1.3fr 1fr;gap:14px}.lines-grid{grid-template-columns:repeat(2,1fr)}th,td{padding:14px}.inbox{grid-template-columns:245px minmax(0,1fr)}.heading-actions .button{padding:10px}.page-heading h1{font-size:25px}.bar{width:45px}}
@media(max-width:800px){.layout{display:block}.sidebar{transform:translateX(-100%);z-index:5;transition:transform .2s;width:230px}.sidebar.open{transform:translateX(0);box-shadow:5px 0 100px #0005}.menu-toggle{display:inline-flex}.main{width:100%}.topbar{height:60px;padding:0 18px}.crumb{display:flex;align-items:center;gap:10px}.top-actions .date{display:none}.content{padding:24px 16px}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:23px}.heading-actions .button{padding:9px;font-size:10px}.heading-actions .button.secondary{display:none}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.dashboard-grid{grid-template-columns:1fr}.lines-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inbox{grid-template-columns:220px minmax(0,1fr);height:calc(100vh - 240px)}.chat-messages{padding:17px}.chat-head{padding:15px}.chat-head .button{font-size:9px;padding:6px}.bubble{max-width:95%}.composer{padding:10px}.composer .button{padding:9px}.notice{font-size:10px}.login{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:100vh}.mobile-brand{display:flex;margin-bottom:40px;color:#164635}.performance-cards{grid-template-columns:1fr 1fr}.toolbar{flex-wrap:wrap}.footer{font-size:9px}.sub{font-size:11px}.stat-value{font-size:27px}}
@media(max-width:540px){.lines-grid{grid-template-columns:1fr}.inbox{grid-template-columns:1fr;height:auto;min-height:0}.thread-list{max-height:220px;border-right:0;border-bottom:1px solid var(--border)}.thread-list .search{padding:10px}.thread-list .search svg{top:21px;left:22px}.thread-item{padding:12px 15px}.chat{height:490px}.chat-head{padding:12px}.page-heading{flex-wrap:wrap}.heading-actions{margin-top:5px}.performance-cards{grid-template-columns:1fr}.top-actions{gap:10px}.tag{font-size:9px}.card-head{padding:17px}.stat{padding:15px}.notice a{display:none}.footer span:last-child{display:none}}

.mini-card svg{width:23px;height:23px;display:block;color:#d9edab;margin-bottom:14px}.mini-card span{display:block}.mobile-brand .brand{color:#164635}.tag svg{width:12px;height:12px}

.brand{font-size:18px;gap:7px;white-space:nowrap;letter-spacing:-.7px}.brandmark{width:29px;height:29px;flex-shrink:0}.brand>span:last-child{margin-left:-5px}.profile{gap:7px}.profile .avatar{width:30px;height:30px}.profile b{font-size:11px}.profile .icon-button{padding:2px;margin-left:0}.profile>div{flex:1}.login-visual .brand{font-size:23px}
.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.connection-card{padding:24px}.connection-card .form-field input{font-size:12px}.checkbox-field{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.6;margin:18px 0 10px}.checkbox-field input{width:16px;height:16px;accent-color:var(--green)}.setup-steps{padding-left:20px;color:#75836b;font-size:12px;line-height:1.9}.setup-steps li{padding:7px 0}.connection-card input[readonly]{background:#f8faf5;color:#718366}.button{ text-decoration:none }@media(max-width:900px){.connection-grid{grid-template-columns:1fr}}

/* Bound the chat grid so long histories scroll without pushing out the composer. */
.inbox{height:calc(100dvh - 315px);min-height:300px;min-width:0;overflow:hidden}
.chat{min-height:0;overflow:hidden}
.chat-head,.composer{flex:0 0 auto}
.chat-head{flex-wrap:wrap}
.chat-head .person{flex:1 1 180px;min-width:0}
.chat-head .person>div{min-width:0;overflow-wrap:anywhere}
.chat-messages{flex:1 1 0;min-height:0;overscroll-behavior:contain}
.chat-messages>.bubble,.chat-messages>.date-label{flex-shrink:0}
@media(max-width:800px){.inbox{height:calc(100dvh - 290px)}}
@media(max-width:540px){.inbox{height:auto;min-height:0}.thread-list{max-height:180px}.chat{height:calc(100dvh - 150px);min-height:340px}}
