:root{--bg:#f8f8f7;--ink:#242524;--muted:#858681;--border:#e8e9e6;--green:#297455}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{transition:background .16s,color .16s}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #6a917a;outline-offset:3px}a{text-decoration:none;color:inherit}svg.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--border);padding:32px 19px 0;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:9px;font-size:34px;font-weight:650;letter-spacing:-2px;padding:0 13px 30px;line-height:1}.brand-mark{width:31px;height:31px;background:#282a27;color:#fff;font-size:29px;font-weight:400;border-radius:9px;text-align:center;line-height:27px;letter-spacing:-2px;transform:rotate(-8deg)}.brand-dot{color:#779b7c;margin-left:-9px}.workspace{padding:13px 10px;border:1px solid var(--border);border-radius:9px;display:flex;align-items:center;gap:10px}.workspace-icon{border:1px solid #ddd;border-radius:6px;width:32px;height:32px;display:grid;place-items:center;font-weight:600;background:#f7f7f5}.workspace strong,.profile strong{font-size:13px;font-weight:550}.workspace small,.profile small{display:block;font-size:12px;color:var(--muted);margin-top:1px}.nav-label{font-size:10px;letter-spacing:1.6px;color:#a0a19d;padding:29px 13px 10px;font-weight:600}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:7px;color:#777a74;margin:3px 0;font-size:13px}.nav-item:hover{background:#f7f7f5}.nav-item.active{background:#f0f2ee;color:#292d28;font-weight:550}.nav-item.active svg{color:#4d7257}.nav-count{margin-left:auto;font-size:11px;background:#e3e7df;border-radius:4px;padding:0 6px;color:#5e7059}.sidebar-bottom{margin-top:auto}.channel-note{margin:20px 9px 25px;font-size:11px;color:#575f55}.channel-note small{display:block;font-size:10px;color:#9b9e96;margin:6px 0 0 15px}.status-dot{display:inline-block;width:6px;height:6px;background:#75a780;border-radius:50%;margin-right:7px}.profile{border-top:1px solid var(--border);display:flex;align-items:center;gap:11px;padding:20px 1px}.avatar{width:37px;height:37px;border-radius:50%;background:#e9ece4;color:#667458;font-size:12px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.avatar.dark{background:#373c35;color:#fff}.avatar.small{width:30px;height:30px;font-size:10px}.main-shell{margin-left:242px}.topbar{height:76px;border-bottom:1px solid var(--border);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 40px;font-size:12px}.top-date{color:#979990;font-size:11px}main{padding:37px 40px 28px;max-width:1600px;margin:auto;min-height:calc(100vh - 127px)}h1{font-size:29px;line-height:1.25;letter-spacing:-1px;font-weight:450;margin:0 0 9px}h2{font-size:14px;font-weight:550;letter-spacing:-.2px}h3{font-weight:550}p{margin:0}.page-sub{color:var(--muted);font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#92958b;margin-bottom:13px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:16px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border:1px solid #dfdfdc;border-radius:7px;background:white;font-size:12px;font-weight:500;white-space:nowrap}.btn:hover{background:#f0f1ed}.btn.primary{background:#333630;color:white;border-color:#333630}.btn.primary:hover{background:#4a5045}.btn .icon{width:15px;height:15px}.btn.small{font-size:11px;padding:7px 10px}.btn.text{border:0;background:transparent;color:#70766a}.icon-btn{padding:8px;border:1px solid var(--border);border-radius:6px;background:#fff;display:inline-flex;align-items:center;justify-content:center}.mobile-menu{display:none}.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px;gap:14px}.tabs{display:flex;padding:3px;background:#eeefeb;border-radius:7px;gap:3px}.tabs button{border:0;background:none;color:#90948a;font-size:11px;padding:7px 12px;border-radius:5px}.tabs button.selected{background:#fff;color:#383d33;box-shadow:0 1px 3px #0000000a}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.card{background:#fff;border:1px solid var(--border);border-radius:10px}.stat{padding:20px 21px}.stat-title{display:flex;justify-content:space-between;align-items:center;color:#81867b;font-size:12px}.stat-title .icon{width:16px;height:16px;color:#a2a89a}.stat-value{font-size:29px;line-height:1.4;letter-spacing:-1px;margin:11px 0 9px;font-weight:450}.stat-foot{font-size:10px;color:#a0a398;display:flex;gap:7px;align-items:center}.trend{color:#548365;background:#f0f6ef;padding:2px 5px;border-radius:4px}.chart-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(285px,1fr);gap:21px;margin-bottom:24px}.card-head{padding:21px 22px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.card-sub{font-size:11px;color:#9a9e93;margin-top:5px}.legend{display:flex;gap:14px;font-size:10px;color:#8b9084}.legend span:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px;background:#68815b}.legend span+span:before{background:#c8d0bf}.chart-area{padding:20px 20px 12px;position:relative}.chart-area svg{width:100%;height:205px;overflow:visible}.chart-area text{font:10px Inter,Arial;fill:#a3a69c}.funnel{padding:24px 23px 17px}.funnel-line{display:flex;justify-content:space-between;font-size:11px;margin:0 0 9px}.funnel-line span{color:#878c80}.funnel-line b{font-weight:500}.funnel-bar{height:7px;background:#f1f3ee;border-radius:3px;margin-bottom:20px}.funnel-bar i{display:block;height:100%;border-radius:3px;background:#8a9b7f}.funnel-note{border-top:1px solid var(--border);padding:13px 22px;color:#909589;font-size:10px;display:flex;align-items:center;gap:6px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:10px;letter-spacing:.5px;color:#969b8e;font-weight:500;background:#fafbf9;padding:12px 22px;border-top:1px solid #eff0ec;border-bottom:1px solid #eff0ec}td{padding:16px 22px;font-size:12px;border-bottom:1px solid #eff0ec;color:#6f7668}tr:last-child td{border-bottom:0}td strong{font-weight:500;color:#393f33}td small{display:block;font-size:10px;color:#a0a696;margin-top:4px}.table-head{padding:19px 22px;display:flex;align-items:center;justify-content:space-between}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:3px 7px;font-size:10px;background:#f0f4ee;color:#638155;white-space:nowrap}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.gray{background:#f0f1ed;color:#979b8f}.badge.amber{background:#faf4e7;color:#a68c4c}.table-icon{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;background:#f3f4ef;border-radius:7px;margin-right:11px;vertical-align:middle;color:#818e73}.table-icon .icon{width:15px;height:15px}.campaign-name{display:inline-block;vertical-align:middle}.mini-progress{width:80px;height:4px;background:#ebeee6;border-radius:4px;display:inline-block;margin-left:7px;vertical-align:middle}.mini-progress i{display:block;height:100%;background:#91a080;border-radius:4px}footer{padding:15px 40px 20px;color:#a7aa9f;font-size:10px;display:flex;justify-content:space-between;max-width:1600px;margin:auto}.search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--border);border-radius:7px;padding:9px 12px;min-width:240px}.search svg{color:#a0a596;width:16px;height:16px}.search input{border:0;outline:0;width:100%;background:transparent;font-size:12px}.select{border:1px solid var(--border);border-radius:7px;background:white;padding:9px 12px;font-size:12px;color:#626a59}.templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.template-card{padding:21px}.template-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.template-name{font-weight:500;font-size:14px;margin-bottom:5px}.message-preview{background:#f4f5f0;border-radius:8px;padding:17px;margin:18px 0;min-height:173px}.message-bubble{background:#fff;padding:13px 14px;border-radius:0 8px 8px 8px;font-size:12px;line-height:1.7;box-shadow:0 1px 2px #00000005;white-space:pre-wrap}.message-time{display:block;text-align:right;font-size:9px;color:#a5aa9c;margin-top:8px}.template-foot{display:flex;align-items:center;justify-content:space-between}.inbox{display:grid;grid-template-columns:290px minmax(320px,1fr) 220px;min-height:570px;height:calc(100vh - 245px);overflow:hidden}.conversation-list{border-right:1px solid var(--border);overflow:auto}.inbox-search{padding:16px}.inbox-search .search{min-width:0;background:#fafbf8}.conversation{width:100%;text-align:left;border:0;border-bottom:1px solid #f2f3ef;background:#fff;display:flex;padding:18px 15px;gap:11px}.conversation.active{background:#f0f3eb}.conversation:hover{background:#f6f7f3}.conversation strong{font-size:12px;font-weight:550}.conversation p{font-size:11px;color:#909787;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:165px}.chat{display:flex;flex-direction:column;min-height:0;background:#fafbf8}.chat-head{display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--border);padding:18px 21px}.chat-messages{padding:26px 24px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:13px}.chat-day{text-align:center;font-size:10px;color:#a0a594;margin-bottom:12px}.bubble{max-width:85%;padding:12px 15px;background:#fff;border:1px solid #e8ece1;border-radius:0 9px 9px 9px;font-size:12px;line-height:1.7;white-space:pre-wrap}.bubble.out{align-self:flex-end;background:#eaf0e3;border-color:#e2e9d9;border-radius:9px 0 9px 9px}.chat-compose{padding:15px;border-top:1px solid var(--border);display:flex;gap:10px;background:#fff}.chat-compose input{border:0;outline:0;flex:1;width:100px;font-size:12px}.contact-panel{padding:23px 19px;border-left:1px solid var(--border);font-size:12px}.contact-panel .avatar{width:55px;height:55px;margin-bottom:11px}.detail-label{font-size:10px;color:#9bA28f;margin-top:23px;margin-bottom:7px}.agents{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.agent{padding:23px}.agent-top{display:flex;gap:12px;align-items:center;margin-bottom:25px}.agent-metrics{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--border);padding:20px 0;margin-top:16px}.agent-metrics strong{display:block;font-size:22px;font-weight:450;letter-spacing:-.7px}.agent-metrics small{font-size:10px;color:#999f91}.empty{padding:50px;text-align:center;color:#969c8d}dialog{border:1px solid var(--border);border-radius:13px;padding:0;width:590px;max-width:calc(100vw - 28px);max-height:90vh;color:var(--ink);box-shadow:0 30px 100px #20271c25}dialog::backdrop{background:#20261c50;backdrop-filter:blur(3px)}.modal-head{padding:23px 26px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:19px;font-weight:450}.modal-body{padding:24px 26px}.field{display:block;margin-bottom:18px;font-size:12px;font-weight:500}.field input,.field textarea,.field select{display:block;width:100%;margin-top:8px;padding:11px 12px;border:1px solid #dedfd9;border-radius:7px;outline:0;background:#fff;font-weight:400}.field input:focus,.field textarea:focus,.field select:focus{border-color:#8a9b7d;box-shadow:0 0 0 3px #8a9b7d15}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:17px 26px;border-top:1px solid var(--border);background:#fafbf8}.modal-note{font-size:11px;color:#949b89}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}#toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translate(-50%,20px);padding:13px 22px;background:#333b2d;color:#fff;border-radius:8px;font-size:12px;box-shadow:0 6px 25px #283b2520;opacity:0;pointer-events:none;transition:.2s;z-index:100}#toast.visible{opacity:1;transform:translate(-50%,0)}@media(min-width:1500px){main{padding-top:45px}.stats{gap:21px}.stat{padding:24px}.chart-area svg{height:245px}td{padding-top:20px;padding-bottom:20px}}@media(max-width:1150px){.sidebar{width:210px}.main-shell{margin-left:210px}.topbar{padding:0 25px}main{padding:28px 25px}.top-date{display:none}.inbox{grid-template-columns:250px 1fr}.contact-panel{display:none}.templates{grid-template-columns:repeat(2,1fr)}.chart-grid{grid-template-columns:1.5fr 1fr}.stat{padding:16px}.stat-foot{font-size:9px}}@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:15px 0 80px #0002}.main-shell{margin-left:0}.mobile-menu{display:flex}.stats{grid-template-columns:repeat(2,1fr)}.chart-grid{grid-template-columns:1fr}.agents{grid-template-columns:1fr 1fr}#toast{left:50%}.page-head{align-items:flex-start}.page-head>div:last-child{flex-wrap:wrap}.inbox{grid-template-columns:220px 1fr}}@media(max-width:600px){main{padding:23px 16px}.topbar{padding:0 16px;height:65px}h1{font-size:25px}.page-head{flex-direction:column}.toolbar{flex-wrap:wrap}.templates,.agents{grid-template-columns:1fr}.inbox{grid-template-columns:1fr;height:auto}.conversation-list{max-height:220px}.chat{min-height:440px}.stats{gap:10px}.stat-value{font-size:25px}.stat-foot{flex-wrap:wrap}.card-head{flex-wrap:wrap}.form-grid{grid-template-columns:1fr;gap:0}footer{padding:15px 16px}.search{min-width:180px}}
[hidden]{display:none!important}



/* conversa real (Twilio) */
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#25d366;margin-left:4px;vertical-align:middle;box-shadow:0 0 0 2px rgba(37,211,102,.2)}

/* callehub: light surfaces, lime actions and clear active states. */
:root {
  color-scheme: light;
  --bg: #f8faf8;
  --ink: #202a22;
  --muted: #788277;
  --border: #e6ebe3;
  --green: #467629;
  --brand-lime: #c7f970;
  --brand-lime-hover: #b9ee5f;
  --brand-ink: #14200d;
  --brand-soft: #eff9e2;
  --chart-primary: #6da839;
  --chart-secondary: #b3d789;
  --funnel-1: #d9efb9;
  --funnel-2: #b9e87c;
  --funnel-3: #90c650;
  --funnel-4: #598e2e;
}
.brand { gap: 10px; font-size: 28px; letter-spacing: -1.2px; }
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-lime);
  transform: none;
  flex-shrink: 0;
}
.brand-word { display: flex; align-items: baseline; gap: 0; font-weight: 400; }
.brand-product { font: inherit; font-weight: 700; color: var(--brand-ink); }
.workspace-icon { display: block; border: 0; background: var(--brand-lime); border-radius: 9px; }
.workspace { background: #fcfdfb; }
.nav-item:hover { background: #f5f9ef; color: var(--brand-ink); }
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
  box-shadow: inset 3px 0 var(--brand-lime);
  font-weight: 600;
}
.nav-item.active svg { color: var(--green); }
.nav-count { background: #e9eee4; color: #536049; }
.nav-item.active .nav-count { background: var(--brand-lime); color: var(--brand-ink); }
.btn.primary { background: var(--brand-lime); border-color: var(--brand-lime); color: var(--brand-ink); font-weight: 600; }
.btn.primary:hover { background: var(--brand-lime-hover); border-color: var(--brand-lime-hover); }
button:focus-visible, a:focus-visible { outline-color: var(--green); }
.tabs { background: #f0f3ed; }
.tabs button.selected { background: var(--brand-soft); color: var(--brand-ink); box-shadow: 0 1px 3px #20301814; font-weight: 600; }
.trend, .badge { background: var(--brand-soft); color: var(--green); }
.badge.gray { background: #f0f2ee; color: #73806b; }
.badge.amber { background: #faf4e7; color: #987c35; }
.status-dot { background: var(--chart-primary); }
.avatar { background: #ecf4e2; color: #4d6837; }
.avatar.dark { background: var(--brand-ink); color: var(--brand-lime); }
.stat-title .icon { color: #7b9666; }
.legend span::before { background: var(--chart-primary); }
.legend span + span::before { background: var(--chart-secondary); }
.funnel-bar { background: #f0f4ea; }
.funnel-bar i { background: var(--chart-primary); }
.mini-progress { background: #edf3e5; }
.mini-progress i { background: var(--chart-primary); }
.table-icon { background: #f0f6e8; color: #6a854e; }
.conversation.active { background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand-lime); }
.conversation:hover { background: #f6faef; }
.conversation.active:hover { background: var(--brand-soft); }
.chat { background: #fafcf8; }
.bubble.out { background: #eff9e2; border-color: #dcecc6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px #90c65020; }
#toast { background: var(--brand-ink); }

/* templates reais */
.tpl-media{background:#e8e9e6;border-radius:8px;padding:18px;text-align:center;font-size:12px;color:#6b6d69;margin-bottom:8px}
.tpl-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tpl-buttons span{border:1px solid #d9dbd6;border-radius:999px;padding:3px 10px;font-size:11px;color:#566e47;background:#fff}
