/* Barion • edição visual independente. Carregar depois de app.css. */
:root{--green:#153d35;--accent:#247966;--mint:#e9f3ef;--paper:#fff;--ink:#213b36;--muted:#6c7e79;--line:#e7eeeb;--canvas:#f5f8f7;--chat:#f5f8f7;--bubble:#e1f1e9;--soft:#f5f8f7;--soft-2:#eef4f1;--soft-ok:#e8f3ed;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
body{background:#f5f8f7}.workspace{grid-template-columns:76px 352px minmax(280px,1fr)}.workspace.crm-open{grid-template-columns:76px 332px minmax(300px,1fr) 336px}
.rail{background:#153d35;padding:28px 0 22px;gap:17px;border:0}.rail-logo{margin-bottom:30px!important}.rail-btn{width:46px;height:46px;border-radius:14px;color:#a9c3ba}.rail-btn.active{background:#ffffff1c;box-shadow:inset 0 0 0 1px #ffffff13;color:#fff}.rail-btn:hover{background:#ffffff29}.user-avatar{background:#e8d8bd;color:#395449;border:3px solid #ffffff24;width:40px;height:40px}
.inbox{background:#fff}.inbox-heading{padding:28px 22px 22px;align-items:flex-end;gap:10px}.inbox-logo{height:24px;width:auto;max-width:145px;object-fit:contain;object-position:left}.inbox-heading h1{position:static;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none;white-space:normal;display:flex;font-size:25px;font-weight:650;letter-spacing:-1px;margin:15px 0 0;padding:0;gap:8px}.count{font-size:11px;font-weight:600;background:#edf4f0;color:#477565;border:0;border-radius:7px;padding:4px 7px;letter-spacing:0}.new-conv{background:var(--green);color:#fff;border:0;border-radius:12px;min-height:40px;padding:10px 12px;box-shadow:0 4px 10px #153d3510}.new-conv:hover{background:#24614f}.new-conv svg{width:17px;height:17px}.heading-actions{gap:4px}
.inbox-tools{padding:0 18px 15px;border-bottom:1px solid var(--line)}.search{background:#f5f7f6;border:1px solid #edf1ef;border-radius:12px;padding:12px;box-shadow:none}.search:focus-within{border-color:#82ac9d;box-shadow:0 0 0 3px #2479660c}.search input{font-size:13px}.search input::placeholder{color:#83928c}.filters{gap:5px;margin-top:13px;padding-bottom:2px}.filters button{font-size:12px;padding:8px 11px;border:0;border-radius:9px;min-height:36px;color:#677e74;background:transparent}.filters button.selected{background:#e7f1eb;color:#235c48;box-shadow:none;font-weight:650}
.demo-banner{background:#f7f9f8;color:#7c8f85;font-size:9px;letter-spacing:1.25px;padding:8px;border-bottom:1px solid #eef2ef}.conversation-scroll{padding:8px}.conversation{padding:17px 12px;gap:11px;border:0;border-radius:13px;margin-bottom:4px;min-height:104px;background:white}.conversation:hover{background:#f5f8f6}.conversation.selected{background:#edf5f0;box-shadow:none}.conversation.selected:before{display:none}.avatar{width:46px;height:46px;border-radius:16px;background:#e8eee3;color:#62774d;font-weight:650}.avatar.tone-1{background:#f1e7db;color:#997547}.avatar.tone-2{background:#e2edf0;color:#537988}.avatar.tone-3{background:#ebe5f2;color:#87709b}.conv-line strong{font-size:14px;letter-spacing:-.15px;color:#2a4238;font-weight:650}.conv-line time{font-size:10px;color:#82958a}.conv-preview{margin-top:6px}.conv-preview p{font-size:12px;line-height:1.5;color:#728479}.stage-pill,.selected .stage-pill{border:0;border-radius:5px;background:#f0f4f1;color:#6e8275;font-size:10px;padding:3px 6px;margin-top:7px}.selected .stage-pill{background:#dfeee4;color:#45775a}.unread{background:#2e8060;min-width:20px;height:20px;font-size:10px}.inbox-footer{background:#fff;padding:18px;font-size:11px;color:#6d8175}.footer-caption{font-size:10px}.dot{background:#58a681;width:7px;height:7px;box-shadow:0 0 0 3px #58a68114}
.chat-header{background:#fff;min-height:88px;padding:20px 26px;border-bottom:1px solid var(--line);gap:12px}.chat-person h2{font-size:16px;font-weight:650;letter-spacing:-.3px}.chat-person p{font-size:12px;color:#7f9188;margin-top:5px}.icon-btn{color:#73887c;border-radius:11px;width:40px;height:40px}.icon-btn:hover{background:#eef4f0}.crm-toggle{padding:10px 12px;border:1px solid #e1ebe5;background:#f7faf8;border-radius:10px;font-size:12px;min-height:40px}.context-bar{background:#fff;padding:9px 26px;min-height:44px;border-bottom:1px solid var(--line)}.context-label{font-size:8px;letter-spacing:1.1px;color:#829389}.context-bar button{color:#397359;font-size:11px;font-weight:600}.context-bar>span:last-child{font-size:10px;color:#748a7b}.messages{background:#f5f8f7;background-image:none;padding:22px 30px;gap:12px;scrollbar-width:thin;scrollbar-color:#d4e1d9 transparent}.day{background:#eaf0ed;border:0;color:#809187;font-size:10px;border-radius:7px;padding:6px 12px;margin:3px 0 10px}.bubble{background:#fff;border:1px solid #eaf0ed;border-radius:15px 15px 15px 4px;padding:13px 16px 8px;box-shadow:0 2px 3px #1d493203;font-size:14px;line-height:1.65;max-width:83%}.bubble.outgoing{background:#e2f0e8;border-color:#dcebe2;border-radius:15px 15px 4px 15px}.bubble.note{background:#fff6df;border-color:#f0e6c8}.bubble-author{font-size:10px;color:#467860;margin-bottom:5px}.bubble-meta{font-size:10px;color:#81968b;margin-top:5px}.activity{font-size:11px;color:#899a8d;background:transparent}
.composer{background:#fff;border-top:1px solid var(--line);padding:12px 22px 20px}.composer-modes{margin:0 0 10px;gap:16px}.composer-modes button{font-size:11px;color:#85968b;min-height:27px;padding:4px 0}.composer-modes button.selected{color:#245c44}.composer-modes>span{font-size:10px;color:#94a298}.composer-row{gap:7px;align-items:flex-end}.composer textarea{border:1px solid #e3ebe6;border-radius:13px;background:#f8faf9;font-size:14px;min-height:48px;padding:13px;box-shadow:none}.composer textarea:focus{outline:none;border-color:#83ad98;box-shadow:0 0 0 3px #2d7d5910}.send{width:47px;height:47px;border-radius:13px;background:#205d45;box-shadow:0 4px 10px #205d451a}.composer-row>.icon-btn{width:36px;height:44px;margin:0}.composer-row>.icon-btn svg{width:20px;height:20px}
.crm{background:#fff;border-left:1px solid var(--line)}.crm-header{padding:26px 22px 21px;background:white;min-height:88px}.crm-header h2{font-size:18px;letter-spacing:-.4px;font-weight:650;margin-top:6px}.crm-header .eyebrow{font-size:8px;letter-spacing:1px;color:#8b9c90}.crm-content{padding:20px}.lead-card{padding:17px;background:#f5f8f6;border:1px solid #e8efea;border-radius:15px;box-shadow:none}.lead-top .avatar{border-radius:13px;background:#e5eee6;color:#63836b}.lead-top strong{font-size:14px}.lead-summary{font-size:12px;line-height:1.7;color:#758779}.lead-owner{color:#718774;font-size:11px;border-color:#e3ebe3}.lead-top small{color:#84968a;font-size:11px}.crm-tabs{gap:9px;overflow-x:auto;scrollbar-width:none;margin:20px 0 19px}.crm-tabs button{flex:none;white-space:nowrap;font-size:11px;padding:10px 0;min-height:40px;color:#88988d}.crm-tabs button.selected{color:#286047;border-color:#286047}.section-caption{font-size:9px;color:#819588;letter-spacing:1.2px;margin:22px 0 14px}.crm label{font-size:11px;gap:7px;color:#708577;margin-bottom:15px}.crm input,.crm select,.crm textarea{font-size:12px;border:1px solid #e1e9e3;border-radius:9px;padding:11px;color:#385342;background:#fff;min-height:40px}.crm input:focus,.crm select:focus,.crm textarea:focus{outline:2px solid #b1d3bf;outline-offset:1px}.crm-save{background:#ffffffed;border-color:#e7eee8;bottom:-20px;padding:14px 0 20px}.primary{border-radius:10px;background:#205d45;min-height:44px;font-size:12px}.secondary{background:#f5f8f5;border-color:#e2eae1;border-radius:9px;min-height:40px}.welcome{background:radial-gradient(ellipse at 50% 35%,#e7f0e9,transparent 65%)}.welcome h2{color:#294c39;font-size:32px}.welcome>p{font-size:14px;color:#7c9080}.welcome-art{background:#fff;border-color:#e1eade}.privacy-line{font-size:11px}dialog{background:#fff;border-color:#e8eee8;box-shadow:0 30px 100px #153d3525;border-radius:20px}dialog::backdrop{background:#153d3550;backdrop-filter:blur(6px)}.dialog-heading h2{font-size:23px;letter-spacing:-.7px}.login-view{background:#f3f7f4}.login-card{border-radius:20px;border-color:#e3ebe3;box-shadow:0 20px 70px #153d3509}
@media(min-width:1600px){.workspace{grid-template-columns:82px 390px 1fr}.workspace.crm-open{grid-template-columns:82px 370px minmax(380px,1fr) 370px}.messages{padding:26px 46px}.bubble{max-width:75%}}
@media(min-width:761px) and (max-width:1250px){.workspace,.workspace.crm-open{grid-template-columns:70px 320px minmax(280px,1fr)}.crm{width:350px;box-shadow:-20px 0 70px #153d3517}.chat-header{padding:18px}.messages{padding:20px}.composer{padding:12px 16px 18px}.composer-modes>span{display:none}}
@media(max-width:760px){.workspace,.workspace.crm-open{display:block;height:var(--b3-view-height,100dvh);max-height:var(--b3-view-height,100dvh)}.rail{display:none}.inbox-heading{padding:calc(22px + env(safe-area-inset-top)) 22px 20px;align-items:center}.inbox-logo{height:24px;max-width:132px}.inbox-heading h1{font-size:28px;margin-top:14px}.heading-actions{gap:1px;align-self:flex-start;margin-top:0}.heading-actions .icon-btn,.new-conv{width:36px;height:44px;min-width:36px;padding:8px;border-radius:11px}.new-conv{width:42px;margin-right:3px}.heading-actions svg{width:19px;height:19px}.inbox-tools{padding:0 20px 14px}.search{padding:13px;border-radius:12px}.search input{font-size:16px}.filters button{font-size:12px;min-height:40px}.conversation-scroll{padding:8px 10px}.conversation{padding:16px 12px;min-height:104px;gap:13px}.avatar{width:49px;height:49px;border-radius:17px}.conv-line strong{font-size:15px}.conv-preview p{font-size:13px}.conv-line time{font-size:11px}.stage-pill{font-size:10px}.chat-header{min-height:80px;gap:6px;padding:calc(10px + env(safe-area-inset-top)) 10px 10px 3px}.chat-header .avatar{width:39px;height:39px;border-radius:13px}.chat-header .icon-btn{width:36px;height:44px;min-width:36px}.chat-person h2{font-size:14px}.chat-person p{font-size:10px}.crm-toggle{padding:8px;min-width:36px;height:44px;border:0;background:#f0f6f2}.context-bar{padding:4px 16px;gap:6px;min-height:44px}.context-label{font-size:7px;letter-spacing:.6px}.context-bar button{font-size:11px;min-height:36px}.messages{padding:18px 15px;gap:12px}.bubble{font-size:14px;padding:11px 13px 7px;max-width:88%}.bubble-meta{font-size:10px}.composer{padding:7px 10px max(12px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #153d3503}.composer-modes{margin:0 4px 5px;gap:19px}.composer-modes button{font-size:11px;min-height:36px}.composer-modes>span{display:none}.composer-row{gap:3px;flex-wrap:wrap}.composer textarea{font-size:16px;line-height:21px;padding:11px 12px;min-height:45px;flex-basis:calc(100% - 60px);order:0}.composer-row .send{order:1;width:45px;height:45px}.composer-row>#attach,.composer-row>#docs-btn,.composer-row>#record{order:2;width:44px;height:40px;min-width:44px;margin-top:3px}.composer-row>#record{margin-left:auto}.crm{width:100%;inset:0;box-shadow:none}.crm-header{padding:calc(20px + env(safe-area-inset-top)) 22px 18px}.crm-header .icon-btn{width:44px;height:44px}.crm-content{padding:22px}.crm label{font-size:12px}.crm input,.crm select,.crm textarea{font-size:16px;min-height:46px}.crm-tabs{gap:18px}.crm-tabs button{font-size:12px;min-height:44px}.lead-summary{font-size:13px}.crm-save{padding-bottom:max(20px,env(safe-area-inset-bottom))}.inbox-footer{padding-bottom:max(18px,env(safe-area-inset-bottom))}.primary,.secondary{min-height:44px}dialog{max-width:calc(100vw - 20px);border-radius:18px}dialog input,dialog textarea,dialog select{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.messages{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22300%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cg%20opacity%3D%22.11%22%3E%3Cg%20transform%3D%22translate(35%2035)%20rotate(-15%2040%2040)%20scale(.68)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23527561%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M0%2024%209%2017V82H0Z%20M15%2013%2024%206V82H15Z%20M30%200%2039-7V82H30Z%20M45%2016C70%2016%2070%2045%2051%2046C76%2045%2079%2082%2045%2082V74C66%2074%2065%2053%2045%2053V43C62%2043%2063%2024%2045%2024Z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(185%20185)%20rotate(15%2040%2040)%20scale(.68)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23527561%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M0%2024%209%2017V82H0Z%20M15%2013%2024%206V82H15Z%20M30%200%2039-7V82H30Z%20M45%2016C70%2016%2070%2045%2051%2046C76%2045%2079%2082%2045%2082V74C66%2074%2065%2053%2045%2053V43C62%2043%2063%2024%2045%2024Z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23527561%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M204%2062h12m-6-6v12M53%20225h10m-5-5v10%22%2F%3E%3Ccircle%20cx%3D%22142%22%20cy%3D%22128%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22277%22%20cy%3D%22285%22%20r%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-size:300px 300px}
