@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";:root{--primary:#0F9D58;--primary-dark:#0d8a4d;--primary-soft:#e6f7ef;--bg:#f8fafc;--sidebar:#fff;--card:#fff;--text:#111827;--muted:#667085;--subtle:#98a2b3;--border:#e5e7eb;--hover:#f3f4f6;--shadow:0 1px 2px rgba(16,24,40,.05);font-family:Inter,Segoe UI,sans-serif;color:var(--text);background:var(--bg)}.dark{--bg:#070b18;--sidebar:#080d19;--card:#0f1726;--text:#f1f5f9;--muted:#94a3b8;--subtle:#64748b;--border:rgba(148,163,184,.14);--hover:rgba(255,255,255,.05);--shadow:0 8px 32px rgba(0,0,0,.3);color-scheme:dark}*{box-sizing:border-box}html,body,#root{margin:0;min-width:320px;min-height:100%;background:var(--bg)}body{overflow:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}.app{display:flex;height:100vh;background:var(--bg)}.app>main{flex:1;min-width:0;overflow:auto}.sidebar{width:224px;height:100vh;display:flex;flex-direction:column;flex:0 0 224px;background:var(--sidebar);border-right:1px solid var(--border);padding:0 8px}.brand{height:64px;display:flex;align-items:center;gap:10px;padding:0 8px;border-bottom:1px solid var(--border)}.brand img{width:34px;height:34px;border-radius:9px}.brand div{display:flex;flex-direction:column}.brand strong{font-size:14px;letter-spacing:-.02em}.brand span{font-size:9px;color:var(--subtle);margin-top:-1px}.sidebar nav{padding:14px 0;display:flex;flex-direction:column;gap:3px}.sidebar nav a,.sidebar-bottom button{height:40px;display:flex;align-items:center;gap:11px;padding:0 12px;border-radius:9px;color:var(--muted);text-decoration:none;font-size:12px;font-weight:550;border:0;background:none}.sidebar nav a svg,.sidebar-bottom button svg{width:17px}.sidebar nav a:hover,.sidebar-bottom button:hover{background:var(--hover);color:var(--text)}.sidebar nav a.active{background:var(--primary);color:#fff;box-shadow:0 5px 12px #0f9d582e}.sidebar nav a b{margin-left:auto;background:#dcfce7;color:#15803d;border-radius:99px;min-width:20px;padding:2px 6px;text-align:center;font-size:10px}.sidebar nav a.active b{background:#ffffff2e;color:#fff}.sidebar-bottom{margin-top:auto;padding:10px 0;border-top:1px solid var(--border)}.me{display:flex;align-items:center;gap:9px;padding:10px 9px;margin:4px 0;border:1px solid var(--border);border-radius:10px;background:var(--hover)}.me>span{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:var(--primary);color:#fff;font-size:10px;font-weight:800}.me div{display:flex;flex-direction:column;min-width:0}.me strong{font-size:11px}.me small{font-size:9px;color:var(--subtle)}.sidebar-bottom .logout{color:#ef4444}.inbox-shell{height:100vh;display:grid;grid-template-columns:310px minmax(430px,1fr) 280px;background:var(--card)}.conversation-panel{border-right:1px solid var(--border);min-width:0;background:var(--card)}.conversation-panel>header{height:74px;padding:17px 18px 10px;display:flex;justify-content:space-between}.conversation-panel h1,.page h1{font-size:20px;letter-spacing:-.025em;margin:0}.conversation-panel header p,.page-head p{font-size:11px;color:var(--muted);margin:2px 0}.icon-button,.chat-actions button,.details-panel header button{border:1px solid var(--border);background:var(--card);color:var(--muted);width:34px;height:34px;border-radius:9px;display:grid;place-items:center}.icon-button svg,.chat-actions svg,.details-panel header svg{width:16px}.search{margin:0 14px;height:38px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--border);background:var(--bg);border-radius:9px}.search svg{width:15px;color:var(--subtle)}.search input{border:0;outline:0;background:transparent;color:var(--text);font-size:11px;width:100%}.tabs{height:47px;display:flex;align-items:end;gap:15px;padding:0 16px;border-bottom:1px solid var(--border)}.tabs button{height:35px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-size:10px;font-weight:650}.tabs button.active{color:var(--primary);border-bottom-color:var(--primary)}.tabs b{font-size:9px;background:var(--hover);padding:1px 5px;border-radius:99px}.conversation-list{height:calc(100vh - 159px);overflow:auto;padding:6px}.conversation-list>button{position:relative;width:100%;border:0;background:none;border-radius:10px;padding:11px 8px;display:flex;gap:10px;text-align:left;color:var(--text)}.conversation-list>button:hover{background:var(--hover)}.conversation-list>button.selected{background:var(--primary-soft)}.dark .conversation-list>button.selected{background:#22c55e1a;border:1px solid rgba(34,197,94,.25)}.conversation-copy{flex:1;min-width:0}.conversation-copy>div{display:flex;justify-content:space-between;gap:6px}.conversation-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-copy time{font-size:9px;color:var(--subtle)}.conversation-copy p{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0}.conversation-copy small{font-size:8px;color:var(--subtle)}.unread{position:absolute;right:8px;bottom:10px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--primary);color:#fff;font-size:8px}.avatar{position:relative;display:grid;place-items:center;flex:none;border-radius:50%;font-weight:800}.avatar.sm{width:28px;height:28px;font-size:9px}.avatar.md{width:39px;height:39px;font-size:11px}.avatar.lg{width:68px;height:68px;font-size:18px}.avatar i{position:absolute;right:0;bottom:1px;width:9px;height:9px;border-radius:50%;background:#22c55e;border:2px solid var(--card)}.chat-panel{display:flex;flex-direction:column;min-width:0;background:var(--bg)}.chat-header{height:65px;display:flex;align-items:center;gap:10px;padding:0 16px;background:var(--card);border-bottom:1px solid var(--border)}.chat-header>div:nth-child(2){display:flex;flex-direction:column}.chat-header strong{font-size:12px}.chat-header span{font-size:9px;color:var(--subtle)}.chat-header span i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#22c55e}.chat-actions{display:flex;gap:6px;margin-left:auto}.window-alert{height:35px;display:flex;align-items:center;justify-content:center;gap:6px;background:#fffbeb;border-bottom:1px solid #fef3c7;color:#92400e;font-size:9px}.dark .window-alert{background:#f59e0b14;border-color:#f59e0b26;color:#fbbf24}.window-alert svg{width:13px}.messages{flex:1;padding:18px 6%;overflow:auto;background:radial-gradient(circle at 15% 10%,rgba(15,157,88,.05),transparent 28%),var(--bg)}.date-chip{width:max-content;margin:0 auto 15px;padding:4px 10px;border:1px solid var(--border);border-radius:99px;background:var(--card);color:var(--subtle);font-size:8px}.message{width:max-content;max-width:72%;padding:9px 11px 5px;border-radius:11px;margin:5px 0;box-shadow:var(--shadow)}.message p{font-size:11px;line-height:1.45;margin:0;color:var(--text)}.message>span{display:flex;align-items:center;justify-content:flex-end;gap:3px;font-size:7px;color:var(--subtle);margin-top:4px}.message>span svg{width:11px;height:11px}.message.in{background:var(--card);border-top-left-radius:3px}.message.out{margin-left:auto;background:#dff7e9;border-top-right-radius:3px}.dark .message.out{background:#0f9d582e}.message.out>span svg{color:#3b82f6}.composer{background:var(--card);border-top:1px solid var(--border);padding:9px 13px}.quick{display:flex;gap:6px;margin-bottom:6px}.quick button{border:0;background:var(--hover);color:var(--muted);border-radius:7px;padding:5px 8px;font-size:8px;display:flex;align-items:center;gap:4px}.quick svg{width:11px}.compose-box{display:flex;align-items:flex-end;gap:7px;border:1px solid var(--border);border-radius:10px;padding:7px;background:var(--bg)}.compose-box button{border:0;background:none;color:var(--muted);height:30px;width:30px;display:grid;place-items:center}.compose-box svg{width:17px}.compose-box textarea{flex:1;resize:none;border:0;outline:0;background:none;color:var(--text);font-size:11px;min-height:28px;max-height:90px;padding:7px 2px}.compose-box .send{border-radius:8px;background:var(--primary);color:#fff}.compose-box .send:disabled{opacity:.35}.composer>small{display:block;text-align:right;font-size:7px;color:var(--subtle);margin-top:4px}.details-panel{border-left:1px solid var(--border);background:var(--card);overflow:auto}.details-panel>header{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border);font-size:12px}.contact-hero{text-align:center;padding:24px 10px 20px;border-bottom:1px solid var(--border)}.contact-hero .avatar{margin:auto}.contact-hero h2{font-size:14px;margin:9px 0 2px}.contact-hero p{font-size:10px;color:var(--muted);margin:0 0 10px}.tag{display:inline-flex;align-items:center;width:max-content;padding:3px 7px;border-radius:99px;background:var(--hover);color:var(--muted);font-size:8px;font-weight:650}.tag.green{background:#dcfce7;color:#15803d}.tag.warning{background:#fef3c7;color:#92400e}.details-section{padding:15px;border-bottom:1px solid var(--border)}.details-section>label{display:block;color:var(--subtle);font-size:8px;font-weight:700;letter-spacing:.09em;margin-bottom:8px}.select-row{width:100%;height:47px;display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--muted);padding:0 3px}.select-row>svg{width:16px}.select-row>div{display:flex;flex-direction:column;text-align:left;flex:1}.select-row small{font-size:8px}.select-row strong{font-size:10px;color:var(--text);margin-top:1px}.detail-field{padding:8px 3px}.detail-field small{display:block;font-size:8px;color:var(--subtle);margin-bottom:5px}.detail-field select{width:100%;height:32px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--text);font-size:10px;padding:0 8px}.details-section dl{margin:0}.details-section dl>div{display:flex;justify-content:space-between;padding:5px 0;font-size:9px}.details-section dt{color:var(--subtle)}.details-section dd{margin:0;color:var(--text)}.details-section textarea{width:100%;min-height:70px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);resize:none;padding:9px;font-size:9px}.detail-footer{padding:14px}.detail-footer button{width:100%;height:34px;border:0;background:none;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:6px;font-size:9px;border-radius:8px}.detail-footer svg{width:14px}.detail-footer .resolve{background:var(--primary-soft);color:var(--primary-dark);margin-top:5px}.page{padding:26px;max-width:1400px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.primary-btn,.secondary-btn{height:38px;border:0;border-radius:9px;padding:0 14px;display:flex;align-items:center;gap:7px;font-size:10px;font-weight:650}.primary-btn{background:var(--primary);color:#fff;box-shadow:0 6px 14px #0f9d5833}.secondary-btn{background:var(--card);color:var(--muted);border:1px solid var(--border)}.primary-btn svg,.secondary-btn svg{width:15px}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.stats-grid article{display:flex;align-items:flex-start;gap:11px;padding:16px;background:var(--card);border:1px solid var(--border);border-radius:11px}.stat-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;color:#fff}.stat-icon svg{width:17px}.stat-icon.green{background:#10b866}.stat-icon.blue{background:#3b82f6}.stat-icon.purple{background:#8b5cf6}.stats-grid article div{display:flex;flex-direction:column}.stats-grid small{font-size:9px;color:var(--muted)}.stats-grid strong{font-size:18px;line-height:1.2}.stats-grid p{margin:2px 0 0;color:var(--subtle);font-size:8px}.table-card{overflow:hidden}.table-toolbar{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid var(--border)}.search.compact{margin:0;width:240px}.table-toolbar select,.modal select{height:34px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--muted);font-size:9px;padding:0 9px}.table-card table{width:100%;border-collapse:collapse}.table-card th{background:var(--bg);color:var(--subtle);font-size:8px;text-transform:uppercase;letter-spacing:.05em;text-align:left;padding:10px 15px}.table-card td{border-top:1px solid var(--border);padding:12px 15px;font-size:10px;color:var(--muted)}.user-cell{display:flex;align-items:center;gap:9px}.user-cell>div{display:flex;flex-direction:column}.user-cell strong{color:var(--text);font-size:10px}.user-cell small{font-size:8px;color:var(--subtle)}.presence{display:flex;align-items:center;gap:5px}.presence i{width:6px;height:6px;border-radius:50%}.presence.online i{background:#22c55e}.presence.away i{background:#f59e0b}.muted{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:9px}.muted svg{width:14px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;background:#0307128f;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal{width:min(460px,calc(100% - 30px));background:var(--card);border:1px solid var(--border);border-radius:15px;box-shadow:0 30px 80px #0000004d;padding:20px}.modal header{display:flex;justify-content:space-between;margin-bottom:17px}.modal h2{font-size:16px;margin:0}.modal header p{font-size:9px;color:var(--muted);margin:3px 0}.modal header button{border:0;background:none;color:var(--muted);font-size:22px}.modal>label,.settings-card>label{display:flex;flex-direction:column;gap:5px;margin:11px 0;color:var(--muted);font-size:9px;font-weight:600}.modal input,.modal select{height:39px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:0 10px;font-size:10px}.modal footer{display:flex;justify-content:flex-end;gap:7px;margin-top:18px}.modal footer>button:first-child{border:1px solid var(--border);background:var(--card);color:var(--muted);border-radius:8px;padding:0 13px;font-size:10px}.settings-page{max-width:1120px}.integration-hero{display:flex;align-items:center;gap:14px;padding:17px;margin-bottom:15px}.whatsapp-mark{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:var(--primary);color:#fff}.whatsapp-mark svg{width:23px}.integration-hero h2{font-size:14px;margin:0}.integration-hero p{font-size:9px;color:var(--muted);margin:4px 0 0}.title-line{display:flex;align-items:center;gap:8px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.settings-card{padding:17px}.settings-card header{display:flex;align-items:flex-start;gap:9px;border-bottom:1px solid var(--border);padding-bottom:13px}.settings-card header>svg{width:18px;color:var(--primary)}.settings-card h3,.setup-steps h3{font-size:12px;margin:0}.settings-card header p{font-size:8px;color:var(--muted);margin:2px 0}.config-list{margin:10px 0}.config-list>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:9px}.config-list span{color:var(--muted)}.config-list b{font-weight:600}.security-note{display:flex;gap:7px;padding:9px;border-radius:8px;background:var(--primary-soft);color:var(--primary-dark);font-size:8px}.security-note svg{width:14px}.copy-field{height:36px;display:flex;align-items:center;border:1px solid var(--border);border-radius:8px;background:var(--bg);overflow:hidden}.copy-field code{flex:1;padding:0 9px;font-size:8px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}.copy-field button{height:100%;width:36px;border:0;border-left:1px solid var(--border);background:none;color:var(--muted)}.copy-field svg{width:13px}.check-list{list-style:none;padding:0;margin:13px 0 0}.check-list li{display:flex;align-items:center;gap:7px;padding:5px 0;color:var(--muted);font-size:9px}.check-list svg{width:14px;color:#22c55e}.check-list .pending svg{color:#f59e0b}.setup-steps{margin-top:15px;padding:17px}.setup-steps>div{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.setup-steps article{position:relative;display:flex;gap:8px;padding:12px;background:var(--bg);border:1px solid var(--border);border-radius:9px}.setup-steps article>span{position:absolute;right:8px;top:7px;color:var(--border);font-weight:800;font-size:18px}.setup-steps article>svg{width:17px;color:var(--primary)}.setup-steps strong{font-size:9px}.setup-steps p{font-size:8px;color:var(--muted);margin:3px 0}.setup-steps>a{display:flex;align-items:center;gap:5px;width:max-content;color:var(--primary);font-size:9px;text-decoration:none;font-weight:650}.setup-steps>a svg{width:12px}.placeholder{padding:30px}.placeholder h1{font-size:20px}.placeholder p{color:var(--muted)}.login-shell{height:100vh;display:grid;place-items:center;background:var(--bg)}.login-card{width:min(360px,calc(100% - 30px));padding:28px;display:flex;flex-direction:column}.login-brand{display:flex;align-items:center;gap:9px;justify-content:center;margin-bottom:4px}.login-brand img{width:34px;height:34px;border-radius:9px}.login-brand strong{font-size:16px}.login-subtitle{text-align:center;color:var(--muted);font-size:11px;margin:0 0 18px}.login-card label{display:flex;flex-direction:column;gap:5px;margin:9px 0;color:var(--muted);font-size:9px;font-weight:600}.login-card input{height:39px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:0 10px;font-size:11px}.login-card .primary-btn{margin-top:10px;justify-content:center}.login-error{background:#fef2f2;color:#b91c1c;border-radius:8px;padding:8px 10px;font-size:10px;margin-top:6px}.dark .login-error{background:#ef44441f;color:#fca5a5}.loading-shell{height:100vh;display:grid;place-items:center;color:var(--muted);font-size:11px}.empty-hint{padding:30px 15px;text-align:center;color:var(--subtle);font-size:10px}.send-error{background:#fef2f2;color:#b91c1c;border-radius:8px;padding:6px 10px;font-size:10px;margin-bottom:6px}.dark .send-error{background:#ef44441f;color:#fca5a5}.message.failed{border:1px solid #fecaca}.message-error{display:block;color:#b91c1c;font-size:8px;margin-top:3px}.dark .message-error{color:#fca5a5}.window-alert.expired{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.dark .window-alert.expired{background:#ef44441a;border-color:#ef444433;color:#fca5a5}.composer .primary-btn{width:100%;justify-content:center}.media-image{display:block;max-width:240px;max-height:240px;border-radius:8px;margin-bottom:4px}.media-pending{display:block;color:var(--subtle);font-size:9px;font-style:italic}.media-download{display:flex;align-items:center;gap:5px;color:var(--primary-dark);font-size:10px;text-decoration:none;margin-bottom:4px}.media-download svg{width:13px}.clickable-row{cursor:pointer}.modal textarea{width:100%;min-height:70px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:9px;font-size:10px;resize:none;font-family:inherit}.department-list{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0}.department-form{display:flex;gap:7px}.department-form input{flex:1;height:36px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:0 10px;font-size:10px}@media(max-width:1150px){.inbox-shell{grid-template-columns:290px 1fr}.details-panel{display:none}}@media(max-width:850px){.sidebar{width:64px;flex-basis:64px}.brand div,.sidebar nav a>span,.sidebar-bottom button span,.me div{display:none}.brand{padding:0 6px}.sidebar nav a,.sidebar-bottom button{justify-content:center;padding:0}.me{justify-content:center}.inbox-shell{grid-template-columns:260px 1fr}.settings-grid{grid-template-columns:1fr}}@media(max-width:650px){body{overflow:auto}.app{height:auto;min-height:100vh}.sidebar{position:fixed;z-index:10;left:0;right:0;bottom:0;top:auto;width:100%;height:59px;display:block;padding:0;border-right:0;border-top:1px solid var(--border)}.brand,.sidebar-bottom{display:none}.sidebar nav{height:100%;padding:4px;display:flex;flex-direction:row;justify-content:space-around}.sidebar nav a{width:52px;height:49px;flex-direction:column;gap:2px;font-size:0}.sidebar nav a>span{display:block;font-size:7px}.sidebar nav a b{position:absolute;margin:0;transform:translate(11px,-9px)}.app>main{padding-bottom:59px}.inbox-shell{height:calc(100vh - 59px);display:block}.conversation-panel{height:100%}.chat-panel{display:none}.stats-grid,.setup-steps>div{grid-template-columns:1fr}.page{padding:18px 12px}.table-card{overflow:auto}.page-head{gap:10px}.page-head p{max-width:210px}}
