/* Acabamento Premium das telas internas. Carrega depois de styles.css e usa a mesma paleta da landing e do cadastro.
   Sem CSS inline (CSP). So aparencia: nenhuma regra de negocio muda aqui. */
:root{--z-ink:#0b1d1d;--z-night:#0c1b28;--z-mint:#3de6a0;--z-mint2:#70e88a;--z-teal:#087879;--z-line:#dbe7e4;--z-soft:#f3f8f6;--z-text:#1b3a3f;--z-muted:#5d767c}
body{background:#f2f7f6;color:var(--z-text);-webkit-font-smoothing:antialiased}
::selection{background:#3de6a044}
/* Sidebar */
.sidebar{background:radial-gradient(ellipse at 20% 0%,#16403d 0,transparent 55%),linear-gradient(170deg,#0f2a29,#0a1824 75%);border-right:1px solid #1f3d3a}
nav button,.settings-nav{font-size:13px;min-height:44px;border-radius:10px;color:#c3d6d4;position:relative}
nav button:hover,.settings-nav:hover{background:#ffffff0f}
nav button.active{background:linear-gradient(90deg,#1b4c42,#15372f);border-color:#2f6a5a66;box-shadow:inset 3px 0 0 var(--z-mint)}
nav small{font-size:9px;background:#ffffff10;border:1px solid #ffffff14;border-radius:999px;padding:2px 7px;color:#a9c8bd}
.nav-count{background:var(--z-mint);color:#08301f;font-weight:700;font-size:11px;border-radius:999px;padding:2px 8px}
.nav-icon{font-size:18px;color:#8fe0b8}
.sidebar-label{font-size:11px;letter-spacing:1.6px;color:#8aa8a2}
.channels>div{font-size:13px;color:#c3d6d4}
.channels em{font-size:10px;border-color:#3a5f55;color:#a6cdbb;padding:3px 8px}
.plan-card{background:#0a1f20cc;border:1px solid #2b5148;border-radius:12px;font-size:12px}
.plan-card strong,.plan-card p{font-size:12px}.plan-card small{font-size:11px;color:#9ab7ac}
.plan-icon{background:linear-gradient(135deg,var(--z-mint),var(--z-mint2))}
/* Topo */
.topbar{height:72px;background:#ffffffe6;backdrop-filter:blur(8px);position:sticky;top:0;z-index:4;border-bottom:1px solid var(--z-line)}
.search{border-radius:12px;background:#f0f6f5;border:1px solid var(--z-line)}.search:focus-within{border-color:#58c9a2;box-shadow:0 0 0 3px #3de6a02e;background:#fff}
.search input{font-size:14px}
.profile b{font-size:14px}.profile small{font-size:12px}
.avatar{width:38px;height:38px;font-size:13px;background:linear-gradient(135deg,#0f6b62,#174e41);box-shadow:0 0 0 2px #fff,0 0 0 4px #3de6a055}
.demo-chip{font-size:11px;font-weight:600;background:#e7f9ee;color:#1f7a50;border:1px solid #c9eed8;border-radius:999px;padding:4px 10px}
/* Cabecalho da pagina */
.page-body{background:radial-gradient(ellipse at 80% -5%,#d9f3ea,transparent 45%),#f2f7f6;padding:28px 28px 24px}
.page-body>header{background:radial-gradient(ellipse at 85% 0%,#1d5a4f 0,transparent 60%),linear-gradient(160deg,#0f2a29,#0b1a27);border:1px solid #1f4540;border-radius:16px;padding:24px 26px;margin-bottom:18px;box-shadow:0 14px 34px #0a24241f}
.page-body>header .eyebrow{color:#7fe3b3;font-size:11px;letter-spacing:2px}
.page-body>header h1{color:#fff;font-size:30px}
.page-body>header .subtitle{color:#b9d2cc;font-size:14px;margin:6px 0 0}
.badge{font-size:12px;color:#c8f5dc;background:#ffffff12;border:1px solid #ffffff22;border-radius:999px;padding:7px 14px}
.notice{font-size:13px;border-radius:12px;padding:12px 16px;background:#fffaf0;border-color:#ecdfb8;color:#6f6130}
/* Cards, metricas */
.stat,.card,.inbox{border-color:var(--z-line);box-shadow:0 1px 2px #0d2b2810,0 10px 28px #0d2b2810}
.stat{border-radius:14px;padding:18px 16px}
.stat label{font-size:13px;color:var(--z-muted)}.stat strong{font-size:30px;color:#0f2f33}.stat-foot small{font-size:11px;color:#7f9a93}
.metric-icon{width:40px;height:40px;border-radius:11px}
.card{border-radius:14px;padding:24px}.card h2{font-size:19px;color:#0f2f33}
.card p{font-size:14px;line-height:1.7;color:var(--z-muted)}.card small{font-size:12px;color:#6f8a84}
.card input,.card textarea{font-size:14px;border-radius:10px;border-color:#cfe0db;background:#fbfdfc}
.card input:focus,.card textarea:focus{border-color:#4cc9a0;box-shadow:0 0 0 3px #3de6a02e;outline:none}
.card label{font-size:14px}
.status{font-size:13px}
/* Caixa de entrada */
.inbox{border-radius:16px}
.thread{padding:16px 14px}.thread b{font-size:14px;color:#17393d}.thread p{font-size:12px;color:#6b857e}
.thread.selected{background:linear-gradient(90deg,#e6f9ee,#f2fbf6);border-left-color:var(--z-mint)}
.thread:hover{background:#f4faf7}
/* Botoes */
.primary{background:linear-gradient(135deg,#3de6a0,#22c98a);color:#05261b;font-size:13px;font-weight:650;border-radius:10px;box-shadow:0 6px 16px #22c98a33;border:0}
.primary:hover{background:linear-gradient(135deg,#52efae,#2bd595)}
.secondary{font-size:13px;color:#24574e;border-color:#c5dcd5;border-radius:10px;background:#fff}.secondary:hover{background:#eef8f3;border-color:#a8d3c5}
.primary,.secondary{min-height:40px;padding:10px 16px}
.source-switch button{font-size:13px;border-radius:999px;padding:8px 16px}.source-switch button.selected{background:#0f2f2c;color:#9ff0c8;border-color:#0f2f2c}
.empty h2{font-size:21px}
footer{font-size:12px;color:#7d948d}
button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #3de6a0;outline-offset:3px}
details.card summary{font-size:14px;color:#24574e;font-weight:600;cursor:pointer}
/* Atendimento IA (laboratorio embutido) */
.lab-embed .card{border-radius:14px;border-color:var(--z-line)}
.lab-embed .primary,.lab-embed .download{background:linear-gradient(135deg,#3de6a0,#22c98a);color:#05261b;border:0}
.lab-embed .secondary{background:#fff;color:#24574e;border-color:#c5dcd5}
.lab-embed .tag{background:#e3f8ec;color:#1b6a47;border-radius:999px}
.lab-embed .card textarea,.lab-embed #login input{border-radius:10px;border-color:#cfe0db}
/* Telas menores: o cabecalho escuro vira faixa compacta e o texto sobe de tamanho onde estava minusculo */
@media(max-width:800px){.page-body{padding:20px 16px}.page-body>header{padding:20px 18px;border-radius:14px}.page-body>header h1{font-size:26px}}
@media(max-width:600px){
 nav button{font-size:12px}nav small{display:none}
 .topbar{position:static}.page-body{padding:16px 12px}
 .page-body>header{flex-wrap:wrap;gap:12px}.page-body>header h1{font-size:25px}
 .badge{max-width:none;font-size:11px;padding:6px 12px;text-align:left}
 .stat strong{font-size:26px}.stat label{font-size:12px}
 .card{padding:18px}.thread b{font-size:14px}.thread p{font-size:13px}
 .primary,.secondary{font-size:14px;min-height:46px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* Linhas de opcao (caixas de marcar) do controle de IA */
.card input[type=checkbox]{width:18px;height:18px;margin:0 10px 0 0;accent-color:#16a974;flex:0 0 auto}
.card label,.card label span,.card .row,.card .row span{font-size:14px;color:#244d47}
.card .row,.card label{display:flex;align-items:center;gap:2px;line-height:1.5}
.zlt-ai-row,.zlt-ai-row2,.zlt-ai-row span,.zlt-ai-row2 span{font-size:14px;line-height:1.5;color:#244d47}.zlt-ai-row input,.zlt-ai-row2 input{margin:0}
.nav-count[hidden]{display:none}
.channels div.clickable{cursor:pointer}.channels div.clickable:hover{background:#ffffff14;border-radius:10px}.connect-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-bottom:14px;background:#fff;border:1px solid #d6e6e2;border-radius:14px;font-size:14px}

.page-body>header.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;position:relative;overflow:hidden;padding:26px 28px}
.hero-main{position:relative;z-index:1;min-width:0}
.hero-side{position:relative;z-index:1;display:flex;align-items:center;gap:16px}
.hero-robot{width:210px;height:210px;object-fit:cover;border-radius:50%;-webkit-mask-image:radial-gradient(circle,#000 52%,transparent 74%);mask-image:radial-gradient(circle,#000 52%,transparent 74%);margin:-26px -10px -26px 0}
.hero-ai{background:#ffffff12;border:1px solid #ffffff26;border-radius:14px;padding:14px 16px;width:230px;color:#d7ebe6;font-size:13px;line-height:1.4}
.hero-ai-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;color:#fff;font-size:15px}
.hero-ai p{margin:0 0 10px}
.hero-ai button{background:transparent;color:#fff;border:1px solid #ffffff55;border-radius:10px;padding:7px 12px;font-size:13px;cursor:pointer}
.hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.hero-stats .stat{background:#ffffff12;border:1px solid #ffffff22;box-shadow:none;border-radius:12px;padding:12px 12px}
.hero-stats .stat label{color:#b9d2cc;font-size:12px}
.hero-stats .stat strong{color:#fff;font-size:24px}
.hero-stats .stat-foot small{color:#8fb5ad;font-size:11px}
.hero-stats .metric-icon{background:#ffffff1c;color:#7fe3b3}
.page-body:not([data-view=overview]):not([data-view=conversations]) #hero-stats,.page-body:not([data-view=overview]):not([data-view=conversations]) .hero-robot{display:none}
.page-body:not([data-view=overview]):not([data-view=conversations]) .hero-ai{display:none}
@media(max-width:1100px){.hero-robot{display:none}}
@media(max-width:900px){.page-body>header.hero{grid-template-columns:1fr}.hero-ai{width:auto}.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hero-stats .metric-icon{width:30px;height:30px;font-size:14px;flex:none}.hero-stats .stat-top{gap:8px}#content>.card.empty{max-width:none}
.reconnect-confirm{border:1px solid #e3b5b0;background:#fff6f5;border-radius:12px;padding:12px 14px;margin-top:10px;font-size:13px}.reconnect-confirm h3{margin:0 0 6px;color:#8a2b22}.reconnect-check{display:flex;gap:8px;align-items:center;margin:8px 0}.reconnect-confirm button{margin:4px 8px 0 0}button.danger{background:#b3372c;color:#fff;border:0;border-radius:10px;padding:9px 14px;font-weight:600;cursor:pointer}button.danger:disabled{opacity:.45;cursor:not-allowed}
.terms-box{white-space:pre-wrap;font-size:13px;line-height:1.7;border:1px solid #e2e9e6;border-radius:8px;padding:14px;max-height:280px;overflow:auto;background:#fbfdfb;margin:8px 0}
