/* Segunda edição: CRM, modais e acompanhamento. */
.perf-goal-top>span{display:flex;align-items:center;gap:7px}.perf-goal-top>span svg{width:15px;height:15px;color:#649878}.crm .timeline:empty:after{content:"A jornada deste cliente começa aqui. As próximas movimentações aparecerão neste histórico.";display:block;padding:20px 14px;color:#7b9283;font-size:12px;line-height:1.8;background:#fff;border-radius:12px}
@media(max-width:760px){dialog .dialog-heading>.icon-btn{width:44px;height:44px;min-width:44px}.perf-goal-top>span{font-size:11px!important;white-space:normal}.perf-goal em{font-size:10px!important}.perf-ver{font-size:11px!important}.perf-mini small,.perf-mini button small{font-size:11px!important}}
.crm{background:#f3f6f5}.crm-header{background:#fff;padding:25px 24px;border-bottom:1px solid #e1e9e5}.crm-header h2{font-size:23px;letter-spacing:-.8px}.crm-content{padding:18px;scrollbar-width:thin;scrollbar-color:#cddbd3 transparent}.lead-card{background:#173f35;color:#fff;border:0;padding:21px;border-radius:19px;position:relative;overflow:hidden;box-shadow:0 8px 24px #163e3510}.lead-top strong{font-size:16px;color:#fff}.lead-top small{font-size:10px;color:#b5cec1}.lead-top .avatar{width:45px;height:45px;background:#ffffff1a;color:#e0eddf;border:1px solid #ffffff20}.lead-summary{color:#c5d8cc;line-height:1.7;font-size:12px}.lead-owner{color:#bbd2c3;border-color:#ffffff19;font-size:10px;padding-top:13px}.crm-overview{margin:18px -21px -21px;padding:18px 21px;background:#ffffff09;border-top:1px solid #ffffff14;display:flex;align-items:center;gap:12px;justify-content:space-between}.crm-overview small{display:block;font-size:8px;letter-spacing:1px;color:#a7c6b5}.crm-overview strong{display:block;font-size:21px;letter-spacing:-.6px;margin-top:6px;font-weight:600}.crm-overview>span{background:#d9efdf;color:#245339;font-size:9px;border-radius:7px;padding:7px 9px;max-width:100px;line-height:1.4}.crm-tabs{position:sticky;top:-18px;background:#f3f6f5;z-index:3;padding:12px 0;margin:5px 0 2px;gap:5px;border:0;overflow:auto}.crm-tabs button{font-size:11px;border:0;border-radius:9px;padding:10px;color:#718379;min-height:38px}.crm-tabs button.selected{background:white;color:#1c513b;box-shadow:0 2px 8px #153d350a}.crm-section{background:#fff;border:1px solid #e5ede8;border-radius:16px;padding:18px;margin-bottom:13px;box-shadow:0 3px 10px #254d3103}.crm-section-title{display:flex;align-items:flex-start;gap:11px;margin-bottom:20px}.crm-section-title>span{display:grid;place-items:center;width:29px;height:29px;flex-shrink:0;background:#edf4f0;color:#6d8e79;border-radius:9px;font-size:10px;font-weight:700}.crm-section-title h3{font-size:14px;font-weight:650;color:#294737;margin:0 0 5px}.crm-section-title p{font-size:10px;line-height:1.5;color:#8a9a8e;margin:0}.crm-section-fields label:last-child{margin-bottom:0}.crm label{color:#607769;font-size:11px;font-weight:500}.crm input,.crm textarea,.crm select{background:#f7f9f8;border:1px solid #e7eee9;color:#2b4939;min-height:43px;border-radius:9px;font-size:12px;padding:12px}.crm-save{background:#f3f6f5f5;padding:12px 0 20px;border:0;backdrop-filter:blur(12px);z-index:4;box-shadow:0 -7px 15px #f3f6f5}.crm-save .primary{height:47px;font-size:12px;box-shadow:0 5px 15px #205d451b}.crm-save p{font-size:9px;color:#7e9181}.crm #crm-form>.lead-summary{color:#667f6d;padding:14px;background:#fff;border:1px solid #e4ece6;border-radius:12px;margin-bottom:14px}.doc-upload{border:1.5px dashed #b8cec0;background:#fff;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px}.doc-upload strong{color:#315840;font-size:15px}.doc-upload small{color:#819488;line-height:1.6}.doc-file-btn{background:#edf5ef;border-radius:9px;padding:14px;color:#386848!important}.doc-item{background:#fff;border:1px solid #e4ece7;border-radius:13px;padding:16px;margin:12px 0}.sim-card{background:#fff;border:1px solid #e1ece4;border-radius:15px;padding:20px}.timeline{margin:20px 15px;border-left:2px solid #dce8df}.timeline-item{padding:0 0 24px 8px}.timeline-item:before{left:-22px;background:#3e8b63;border-color:#f3f6f5}
dialog{padding:30px;border:1px solid #ffffff;border-radius:24px;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);background:#fff;box-shadow:0 30px 100px #0b302e38;scrollbar-width:thin;scrollbar-color:#d7e3db transparent}dialog::backdrop{background:#173b375e;backdrop-filter:blur(8px)}.dialog-heading{gap:16px;align-items:flex-start;margin-bottom:0}.modal-title{display:flex;align-items:center;gap:15px;min-width:0}.modal-icon{width:49px;height:49px;border-radius:15px;background:#eaf3ed;color:#37795b;display:grid;place-items:center;flex-shrink:0}.modal-icon svg{width:23px;height:23px}.modal-title .eyebrow{font-size:8px;color:#829789;letter-spacing:1.5px}.dialog-heading h2{font-size:23px;font-weight:650;letter-spacing:-.8px;line-height:1.2;margin-top:6px}.dialog-heading>.icon-btn{background:#f3f6f4;color:#7f9485;width:35px;height:35px;border-radius:50%;flex-shrink:0}.dialog-heading>.icon-btn:hover{background:#e6eee8}.modal-subtitle{font-size:12px;color:#87998c;line-height:1.7;margin:17px 0 24px;padding-bottom:21px;border-bottom:1px solid #edf1ee}.dialog-help,.aprov-ajuda{font-size:12px;line-height:1.7;color:#7d9183}dialog label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#58715f;font-weight:500}dialog input,dialog select,dialog textarea{width:100%;background:#f6f9f7;border:1px solid #e2ebe4;border-radius:11px;padding:13px 14px;min-height:46px;color:#294934;outline:none;font-size:14px}dialog input:focus,dialog select:focus,dialog textarea:focus{border-color:#83ae94;box-shadow:0 0 0 3px #2f785911}dialog .primary{min-height:48px;border-radius:12px;font-size:13px;background:#205d45;box-shadow:0 5px 12px #205d4514}dialog .secondary{background:#f0f6f2;border:1px solid #e1ece4;border-radius:10px;color:#466e52;font-size:12px}dialog .empty{padding:40px 20px;background:#f5f8f6;border:1px dashed #dce7de;border-radius:16px;color:#7b9081;margin:15px 0;font-size:13px}dialog .form-error:empty,dialog .error:empty{display:none}
#lembrete-dialog{width:min(540px,calc(100vw - 32px))}#lembrete-cliente{padding:15px 17px;border-radius:13px;background:#f1f6f3;border:1px solid #e7efe9;font-size:12px;line-height:1.7;color:#6a8272;margin:0 0 22px}#lembrete-form{gap:19px;margin:0}.lembrete-rapidos{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:2px}.lembrete-rapidos button{border:1px solid #e4ece6;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-radius:13px;padding:15px 6px;font-size:11px;font-weight:500;color:#6e8977;min-height:80px}.lembrete-rapidos svg{width:21px;height:21px;color:#508262}.lembrete-rapidos button:hover,.lembrete-rapidos button:focus{border-color:#80ad91;background:#edf6f0;color:#255e3e;outline:none}.lembrete-rapidos button:focus-visible{outline:2px solid #4d9570;outline-offset:2px}#lembrete-form .field-grid{gap:14px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}#lembrete-lista{max-height:none;overflow:visible;margin-top:24px;border-top:1px solid #e8eee9;padding-top:5px}#lembrete-lista:empty{display:none}.lembrete-item{background:#f6f9f7;border:1px solid #e5ede7;border-radius:13px;padding:16px;gap:14px;margin-bottom:7px}.lembrete-item.vencido{background:#fff9ee;border-color:#f0e4ce}.lembrete-info{gap:7px}.lembrete-info strong{font-size:14px}.lembrete-info span{font-size:13px;color:#35543f;line-height:1.5}.lembrete-info small{font-size:11px;color:#8b9d90}.lembrete-item .finish-btn{min-height:38px;border-radius:9px;background:#e4f1e8;color:#3e7050;font-size:11px;padding:9px 12px}.lembrete-item.feito{opacity:.6}.lembretes-lista{padding:8px}.lembretes-lista .lembrete-item{display:flex;flex-wrap:wrap}.lembretes-lista .lembrete-info{min-width:165px}
#perf-dialog{width:min(860px,calc(100vw - 48px));padding:32px;gap:0;border-radius:24px;background:#f5f8f6}#perf-dialog .modal-icon{background:#e4eee7}#perf-dialog .modal-subtitle{margin-bottom:20px}#perf-dialog .perf-tools{justify-content:flex-end;margin-bottom:20px}.perf-tools input,.perf-tools select{flex:0 1 220px;background:white;border-color:#dde8e0;border-radius:10px;padding:10px 14px;font-size:13px;min-height:42px}.perf-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#143e33,#256348);border-radius:20px;padding:28px 30px;min-height:160px;box-shadow:0 10px 20px #173f3510}.perf-hero:after{content:"";position:absolute;width:240px;height:240px;right:80px;top:-130px;border:40px solid #ffffff05;border-radius:50%;pointer-events:none}.perf-hero strong{font-size:48px;letter-spacing:-2px;font-weight:550;margin:8px 0}.perf-hero small{font-size:11px;color:#c3decb;letter-spacing:.6px;opacity:1}.perf-hero span{color:#d9e8dc;font-size:14px}.perf-rank{border:1px solid #ffffff1a;background:#ffffff0d;padding:19px 22px;border-radius:16px}.perf-rank b{font-size:38px;font-weight:500;letter-spacing:-1px}.perf-rank small{font-size:10px;letter-spacing:0;line-height:1.5;margin-top:5px}.perf-motiv{background:transparent;color:#6e8976;font-size:12px;margin:17px 3px 24px;line-height:1.6}.perf-goals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.perf-goal{background:#fff!important;border:1px solid #e2ebe4!important;border-radius:15px!important;padding:18px!important;box-shadow:0 3px 7px #153d3503}.perf-goal-top{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.perf-goal-top span{font-size:11px;color:#688273;white-space:nowrap}.perf-goal-top strong{font-size:29px;letter-spacing:-1px;color:#284d37}.perf-goal-top small{font-size:13px;font-weight:400;color:#9aada0;letter-spacing:0}.perf-bar{height:5px;background:#edf3ee;margin:17px 0 12px}.perf-bar i{background:#5c9b77;border-radius:99px}.perf-goal em{font-size:9px;color:#93a296}.perf-goal em.up{color:#548267}.perf-ver{font-size:10px;font-weight:500;color:#608570;margin-top:14px}.perf-mini{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;border:1px solid #e3ece5;border-radius:15px;padding:18px 5px;margin:18px 0 25px}.perf-mini button,.perf-mini div{background:transparent;border:0;border-right:1px solid #ebf0ec;border-radius:0;padding:5px;text-align:center}.perf-mini>:last-child{border:0}.perf-mini b,.perf-mini button b{font-size:22px;font-weight:550;letter-spacing:-.6px;color:#365943;margin-bottom:8px}.perf-mini small,.perf-mini button small{font-size:10px;color:#85998b}.perf-chart{height:190px;background:repeating-linear-gradient(to top,#e7eee8 0px,#e7eee8 1px,transparent 1px,transparent 40px),#fff;border:1px solid #e3ece5;border-radius:16px 16px 0 0;padding:25px 30px 10px;gap:18px}.perf-cols{gap:6px}.perf-cols i{width:22px;border-radius:5px 5px 0 0}.perf-cols i.p{background:#bbd8c3}.perf-cols i.v{background:#377858}.perf-chart small{font-size:11px;color:#8c9e90;margin-top:8px}.perf-legend{padding:13px 20px;background:#fff;border:1px solid #e3ece5;border-top:0;border-radius:0 0 15px 15px;text-align:right;color:#829588;font-size:10px}.perf-ranking{background:#fff;padding:5px 18px;border:1px solid #e2ebe4;border-radius:15px}.perf-ranking li{padding:14px 8px;border-color:#edf2ee;font-size:12px}.perf-ranking li:last-child{border:0}.perf-ranking li.eu{background:#f0f7f2;border-radius:10px}.perf-ranking .avatar{border-radius:10px}.perf-ranking li span.perf-rname{width:auto;flex:1;color:#4a6854;font-weight:500}.perf-ranking li b{font-size:17px;font-weight:600}.perf-ranking li b small{font-size:10px;font-weight:400;color:#8c9e91}.perf-badges{margin-bottom:20px}.perf-badges span{background:#eef5e9;color:#70925d;border:1px solid #e4eddb;padding:8px 13px;border-radius:8px;font-size:11px}.perf-clientes button{padding:15px 5px}#perf-list{border:1px solid #dce9df;background:#fff;border-radius:16px;margin:20px 0;padding:18px}.perf-list-head{font-size:15px}.perf-list-head .icon-btn{background:#f2f6f3}
.settings-section{border:1px solid #e7eee8;border-radius:16px;padding:22px;margin-bottom:14px;gap:15px;background:#f8faf8}.settings-section>svg{background:#e7f1e9;box-sizing:content-box;padding:10px;border-radius:11px;width:20px;height:20px}.settings-section p{color:#7a9181;font-size:12px}.settings-section h3{font-size:15px;color:#365940}#settings-user{background:#eaf3ed;color:#568064;padding:9px 14px;border-radius:8px;display:inline-block;margin:0 0 20px}#settings .logout{padding:14px 0;font-size:12px}.aprov-filtros{background:#f2f6f3;padding:6px;border-radius:12px;margin:20px 0}.aprov-filtros button.selected{background:#fff;box-shadow:0 2px 6px #153d3508}.aprov-item{background:#f8faf8;border:1px solid #e3ece5;border-radius:15px;padding:20px;margin-bottom:12px}.aprov-item.atrasada{background:#fff8ef;border-color:#efe2cd}.aprov-status{border-radius:7px;padding:6px 10px;font-size:10px}.aprov-acoes button,.aprov-acoes select{border:1px solid #e1eae3;border-radius:9px;padding:10px;background:#fff}.docs-tabs{margin:20px 0}.docs-tabs button{background:#e9f3ec;color:#386747;border:0;padding:10px 15px;border-radius:10px}#docs-dialog img{border:1px solid #e5ece5;border-radius:14px}#new-dialog label{margin-top:20px;font-size:12px;color:#617e69}#new-dialog .primary{margin-top:26px}#new-dialog input{border-radius:11px;background:#f6f9f7;border-color:#e2ebe4;padding:14px}
@media(min-width:1251px){.workspace.crm-open{grid-template-columns:72px 310px minmax(300px,1fr) 370px}}
@media(min-width:761px) and (max-width:1250px){.crm{width:390px}}
@media(max-width:760px){.crm-header{padding:calc(20px + env(safe-area-inset-top)) 22px 20px}.crm-content{padding:16px}.crm-header h2{font-size:24px}.lead-card{padding:22px}.lead-top strong{font-size:17px}.lead-summary{font-size:13px}.crm-overview{margin:20px -22px -22px;padding:20px 22px}.crm-tabs{top:-16px;gap:3px;padding:13px 0}.crm-tabs button{font-size:11px;padding:11px;min-height:44px}.crm-section{padding:20px}.crm-section-title h3{font-size:15px}.crm-section-title p{font-size:11px}.crm input,.crm select,.crm textarea{font-size:16px;min-height:48px}.crm label{font-size:12px}.crm-section-title{margin-bottom:23px}.crm-save{bottom:-16px;padding-bottom:max(18px,env(safe-area-inset-bottom))}dialog,#perf-dialog,#lembrete-dialog{padding:24px 20px;width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 32px);height:auto;margin:auto;border-radius:22px}.dialog-heading h2{font-size:21px}.modal-title{gap:12px}.modal-icon{width:42px;height:42px;border-radius:13px}.modal-icon svg{width:20px;height:20px}.modal-title .eyebrow{font-size:7px;letter-spacing:1px}.dialog-heading{gap:8px}.dialog-heading>.icon-btn{min-width:34px;width:34px;height:34px}.modal-subtitle{font-size:12px;margin:17px 0 20px;padding-bottom:18px}.lembrete-rapidos{gap:6px}.lembrete-rapidos button{min-height:77px;padding:13px 4px;font-size:10px}#lembrete-cliente{font-size:12px;padding:13px}#lembrete-form{gap:18px}dialog input,dialog select{font-size:16px;min-width:0;max-width:100%}#lembrete-form .field-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:10px}.perf-tools input{flex:1;max-width:none}.perf-hero{padding:24px 20px;min-height:145px}.perf-hero strong{font-size:39px}.perf-hero span{font-size:12px}.perf-rank{padding:13px}.perf-rank b{font-size:28px}.perf-rank small{font-size:9px;max-width:65px}.perf-goals{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.perf-goal{padding:16px!important}.perf-goal-top{gap:13px}.perf-goal-top span{font-size:10px}.perf-mini{grid-template-columns:repeat(2,1fr);padding:5px 10px}.perf-mini button,.perf-mini div{padding:17px 4px;border:0}.perf-mini>:nth-child(odd){border-right:1px solid #e9efea}.perf-mini>:nth-child(-n+2){border-bottom:1px solid #e9efea}.perf-chart{height:165px;padding:20px 15px 10px;gap:10px}.perf-cols i{width:13px}.perf-ranking{padding:5px 10px}.settings-section{padding:18px;gap:12px}.settings-section>svg{padding:8px}.lembrete-item .finish-btn{min-height:44px}.aprov-filtros{gap:3px}.aprov-filtros button{padding:9px 10px;font-size:11px}}

/* 0.40 — responder mensagem (citação) e ir até a mensagem */
.bubble{position:relative;transition:transform .15s ease}
.bubble .reply-btn{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;border-radius:50%;display:grid;place-items:center;background:#ffffffd9;color:#4d7a60;opacity:0;transition:opacity .15s;cursor:pointer;box-shadow:0 1px 4px #153d3514;z-index:1}
.bubble .reply-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bubble:hover .reply-btn,.bubble .reply-btn:focus-visible{opacity:1}
@media (hover:none){.bubble .reply-btn{display:none}}
.bubble.swipe-ok{box-shadow:-6px 0 0 #3e8b6340}
.bubble .quote{display:block;width:100%;text-align:left;border:0;border-left:3px solid #3e8b63;border-radius:8px;background:#0f3d2e0d;padding:6px 9px;margin:0 0 6px;cursor:pointer;font:inherit;color:inherit}
.bubble.outgoing .quote{background:#ffffff73}
.bubble .quote strong{display:block;font-size:11px;font-weight:600;color:#2f7351;margin-bottom:2px}
.bubble .quote span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.4;color:#5b6f62}
.bubble.destaque{animation:destaque-msg 2.2s ease}
@keyframes destaque-msg{0%,35%{box-shadow:0 0 0 4px #f2c94c99;background-color:#fff6d6}100%{box-shadow:none}}
@media (prefers-reduced-motion:reduce){.bubble{transition:none}.bubble.destaque{animation:none;box-shadow:0 0 0 3px #f2c94c99}}
.reply-bar{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:8px 8px 8px 12px;border-left:3px solid #3e8b63;border-radius:10px;background:#eef5f0}
.reply-bar[hidden]{display:none}
.reply-bar>div{flex:1;min-width:0}
.reply-bar strong{display:block;font-size:11px;font-weight:600;color:#2f7351}
.reply-bar span{display:block;font-size:12px;color:#5b6f62;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reply-bar .icon-btn{width:30px;height:30px;min-width:30px}

/* 0.44: menu da mensagem, edição, apagadas e lote de fotos */
.bubble .menu-btn{position:absolute;top:6px;right:38px;width:28px;height:28px;border:0;border-radius:50%;display:grid;place-items:center;background:#ffffffd9;color:#4d7a60;opacity:0;transition:opacity .15s;cursor:pointer;box-shadow:0 1px 4px #153d3514;z-index:1}
.bubble .menu-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bubble:hover .menu-btn,.bubble .menu-btn:focus-visible{opacity:1}
@media (hover:none){.bubble .menu-btn{display:none}.bubble{-webkit-touch-callout:none}}
.msg-menu{position:fixed;z-index:60;min-width:190px;padding:6px;border-radius:14px;background:#fff;box-shadow:0 12px 32px #0f3d2e2e,0 2px 6px #0f3d2e14;display:flex;flex-direction:column}
.msg-menu[hidden]{display:none}
.msg-menu button{border:0;background:transparent;text-align:left;padding:11px 14px;border-radius:10px;font:inherit;font-size:14px;color:#1f3b2d;cursor:pointer}
.msg-menu button:hover,.msg-menu button:focus-visible{background:#eef5f0;outline:none}
.msg-menu button.perigo{color:#b3261e}
.msg-menu button.perigo:hover,.msg-menu button.perigo:focus-visible{background:#fdecea}
.bubble.apagada{opacity:.85}
.bubble .apagada-texto{font-style:italic;color:#6b7d72}
.bubble .aviso-apagada{margin:0 0 6px;padding:6px 9px;border-radius:8px;background:#fdecea;color:#9b2c24;font-size:11.5px;line-height:1.35;font-weight:600}
.bubble .editada{font-size:11px;color:#6b7d72;font-style:italic;margin-right:6px}
.bubble details.antes{margin:6px 0 0;font-size:12px;color:#5b6f62}
.bubble details.antes summary{cursor:pointer;color:#2f7351;font-size:11.5px;list-style:none}
.bubble details.antes summary::-webkit-details-marker{display:none}
.bubble details.antes p{margin:4px 0 0;padding:6px 9px;border-radius:8px;background:#0f3d2e0d;white-space:pre-wrap}
.composer.editing .reply-bar{border-left-color:#c58b00;background:#fff7e0}
.composer.editing .reply-bar strong{color:#8a6100}
.attachment-thumbs{flex-basis:100%;display:flex;gap:8px;overflow-x:auto;padding:8px 0 2px;scrollbar-width:thin}
.attachment-thumbs[hidden]{display:none}
.attachment-thumbs .thumb{position:relative;flex:0 0 64px;height:64px;border-radius:10px;overflow:hidden;background:#e7f2e9;display:grid;place-items:center}
.attachment-thumbs .thumb img{width:100%;height:100%;object-fit:cover}
.attachment-thumbs .thumb-nome{font-size:10px;padding:4px;text-align:center;word-break:break-all;color:#3d5a49}
.attachment-thumbs .thumb-x{position:absolute;top:3px;right:3px;width:22px;height:22px;border:0;border-radius:50%;display:grid;place-items:center;background:#0f3d2ecc;color:#fff;cursor:pointer;padding:0}
.attachment-thumbs .thumb-x svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
/* 0.49: logo animado Barion3 (abertura do app e topo da barra lateral). --t = ritmo: 1.4 = 40% mais lento que o original */
.b3anim{--t:1.4;position:relative;width:100%;aspect-ratio:690/928;animation:b3a-settle calc(2.6s * var(--t)) cubic-bezier(.2,.8,.2,1) both}
.b3anim img{position:absolute;inset:0;width:100%;height:100%;display:block;max-width:none}
.b3a-bar{clip-path:inset(100% 0 0 0);animation:b3a-rise calc(.7s * var(--t)) cubic-bezier(.22,1,.36,1) both}
.b3a-bar1{animation-delay:calc(.15s * var(--t))}.b3a-bar2{animation-delay:calc(.32s * var(--t))}.b3a-bar3{animation-delay:calc(.49s * var(--t))}
.b3a-b{opacity:0;transform:translateX(18%);filter:blur(6px);animation:b3a-bin calc(.75s * var(--t)) cubic-bezier(.22,1,.36,1) calc(.85s * var(--t)) both}
.b3a-shine{position:absolute;inset:0;overflow:hidden;pointer-events:none;-webkit-mask:url(./anim-mascara.png) center/100% 100% no-repeat;mask:url(./anim-mascara.png) center/100% 100% no-repeat}
.b3a-shine::before{content:"";position:absolute;top:-10%;bottom:-10%;width:45%;left:-60%;background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.75) 50%,rgba(255,255,255,0) 100%);transform:skewX(-18deg);animation:b3a-sweep calc(1s * var(--t)) ease-in-out calc(1.55s * var(--t)) both}
@keyframes b3a-rise{to{clip-path:inset(0 0 0 0)}}
@keyframes b3a-bin{to{opacity:1;transform:none;filter:blur(0)}}
@keyframes b3a-sweep{to{left:120%}}
@keyframes b3a-settle{0%{transform:scale(.94)}100%{transform:scale(1)}}

/* Abertura (tela cheia, por cima de tudo enquanto o app carrega) */
.abertura{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:#0f3e2e;overflow:hidden;color:#fff;transition:opacity .6s ease;cursor:pointer}
.abertura.saindo{opacity:0;pointer-events:none}
.ab-wm{position:absolute;inset:-60%;background:url(./anim-marca-dagua.png) 0 0/150px 150px repeat;transform:rotate(-14deg);opacity:0;animation:ab-wmin 1.4s ease-out forwards,ab-drift 40s linear infinite;pointer-events:none}
.ab-vig{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 45%,#0f3e2e 0,#0f3e2e min(24vw,170px),rgba(15,62,46,0) min(52vw,360px))}
.ab-centro{position:relative;display:flex;flex-direction:column;align-items:center;gap:18px;width:min(440px,100%);padding:24px;text-align:center}
.ab-logo{position:relative;width:min(34vw,190px)}
.ab-glow{position:absolute;inset:-60%;background:radial-gradient(closest-side,rgba(140,200,90,.22),rgba(140,200,90,0) 70%);opacity:0;transform:scale(.6);animation:ab-glow 2s ease-out 1.75s forwards,ab-breathe 4.5s ease-in-out 3.75s infinite;pointer-events:none}
.ab-info{opacity:0;transform:translateY(10px);transition:opacity .7s ease,transform .7s ease;width:100%}
.ab-info:empty{display:none}
.ab-info.on{opacity:1;transform:none}
.ab-info h2{font-size:26px;margin:4px 0 16px;letter-spacing:-.5px}
.ab-toque{opacity:0;font-size:11px;color:#cfe3d6;transition:opacity .6s}
.abertura.pronta .ab-toque{opacity:.65}
@keyframes ab-wmin{to{opacity:1}}
@keyframes ab-drift{to{background-position:150px 150px}}
@keyframes ab-glow{to{opacity:1;transform:scale(1)}}
@keyframes ab-breathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(1.06)}}
@media(max-width:400px){.ab-info h2{font-size:23px}}

/* Barra lateral (computador): o logo animado no lugar do quadrado branco */
.rail-logo.anim{background:none!important;box-shadow:none!important;width:46px;height:auto;padding:2px 7px;border-radius:12px}
.rail-logo.anim .b3anim{width:32px;--t:1.4}
.rail-logo.anim:focus-visible{outline:2px solid #a9d18e;outline-offset:2px}

@media(prefers-reduced-motion:reduce){.b3anim,.b3a-bar,.b3a-b,.b3a-shine::before,.ab-wm,.ab-glow{animation:none!important}.b3a-bar{clip-path:none}.b3a-b{opacity:1;transform:none;filter:none}.ab-wm{opacity:1}.b3a-shine{display:none}}
/* Boas-vindas depois do login: logo animado, sem o quadro branco */
.splash-logo.anim{background:none;box-shadow:none;padding:0;width:120px;margin-bottom:14px}
.splash-logo.anim .b3anim img{width:100%;height:100%;filter:none;margin:0}

/* 0.52: notas da equipe fora da conversa (botão no topo + lista) */
.notas-btn{position:relative}
.notas-btn.tem-notas{color:#8a6100}
.notas-n{position:absolute;top:2px;right:2px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#d97706;color:#fff;font-size:10px;font-weight:700;line-height:17px;text-align:center}
.notas-n[hidden]{display:none}
.notas-dialog{width:min(520px,calc(100vw - 24px))}
.notas-lista{display:flex;flex-direction:column;gap:10px;max-height:min(60vh,520px);overflow:auto;margin:6px 0 14px;padding:2px}
.notas-lista .nota{background:#fff8e6;border-radius:12px;padding:10px 12px}
.notas-lista .nota small{display:block;font-size:11px;color:#8a6100;font-weight:600;margin-bottom:4px}
.notas-lista .nota-texto{font-size:14px;line-height:1.45;color:#3b3020;white-space:pre-wrap;word-break:break-word}
.notas-lista .nota img,.notas-lista .nota audio,.notas-lista .nota video{max-width:100%;border-radius:8px;margin-top:6px}
.notas-lista .nota.apagada p{margin:0;font-style:italic;color:#8a7a60}
.notas-lista .nota.destaque{animation:destaque-msg 2.2s ease}
#notas-escrever{width:100%}

/* Botão Baixar dos anexos (sem borda, fundo suave) */
.baixar-anexo{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:6px 11px;border-radius:8px;background:#0f3e2e0d;color:var(--green);font-size:11px;font-weight:600;text-decoration:none}
.baixar-anexo:hover{background:#0f3e2e1a}
.baixar-anexo svg{width:14px;height:14px}
.bubble .baixar-anexo{display:flex;width:max-content}

/* Materiais (pasta por empreendimento): subpastas, lista de PDFs, grade de fotos com seleção e texto pronto */
.docs-tabs{margin:0 0 14px}
.materiais{display:flex;flex-direction:column;gap:12px}
.materiais[hidden],.docs-mcmv[hidden]{display:none}
.material-subs{display:flex;gap:4px;background:#f2f6f3;padding:5px;border-radius:12px}
.material-subs button{flex:1;border:0;background:transparent;border-radius:9px;padding:9px 6px;font-size:12px;font-weight:600;color:#58715f}
.material-subs button.selected{background:#fff;color:#0f3d2e;box-shadow:0 2px 6px #153d3510}
.materiais .marcar-todos{align-self:flex-start;padding:7px 12px;border:0}
.material-lista{display:flex;flex-direction:column;gap:8px}
.material-item{display:flex;align-items:center;gap:10px;background:#f6f9f7;border-radius:12px;padding:4px 10px 4px 4px}
.material-item.on{background:#e3f0e7}
.material-item label{flex:1;flex-direction:row;align-items:center;gap:10px;padding:10px 6px;cursor:pointer;min-width:0}
.material-item input,.material-foto input{width:20px;height:20px;min-height:0;padding:0;flex-shrink:0;accent-color:#205d45}
.material-nome{display:flex;flex-direction:column;gap:2px;font-size:13px;color:#294934;font-weight:500;overflow-wrap:anywhere}
.material-nome small{font-size:11px;color:#87998c;font-weight:400}
.material-ver{font-size:12px;font-weight:600;color:var(--green);text-decoration:none;padding:8px 10px;border-radius:8px;background:#0f3e2e0d}
.material-fotos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.material-foto{position:relative;display:block;aspect-ratio:1;border-radius:12px;overflow:hidden;cursor:pointer;background:#eef3ef}
#docs-dialog .material-foto img{width:100%;height:100%;object-fit:cover;border:0;border-radius:0;display:block;transition:transform .15s}
.material-foto input{position:absolute;opacity:0;pointer-events:none}
.material-check{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:#ffffffd9;border:2px solid #fff;display:grid;place-items:center;color:transparent;box-shadow:0 1px 4px #0003}
.material-check svg{width:14px;height:14px}
.material-foto.on .material-check{background:#205d45;color:#fff}
.material-foto.on img{transform:scale(.92)}
.material-foto.on{box-shadow:inset 0 0 0 3px #205d45}
.material-foto:focus-within{outline:2px solid #83ae94;outline-offset:2px}
#anexar-materiais{position:sticky;bottom:0;z-index:1;box-shadow:0 -10px 18px #ffffff,0 5px 12px #205d4514}
#anexar-materiais:disabled{opacity:1;background:#9db8a8;cursor:default}
.texto-pronto{display:flex;flex-direction:column;gap:10px}
.texto-pronto-txt{white-space:pre-wrap;font-size:13px;line-height:1.5;color:#294934;background:#f6f9f7;border-radius:12px;padding:14px;max-height:45dvh;overflow:auto}
@media (max-width:420px){.material-fotos{grid-template-columns:repeat(2,1fr)}}

/* Documento na conversa, como no WhatsApp: capa (1ª página), ícone com a extensão, nome, páginas e tamanho */
.doc-card{display:flex;flex-direction:column;width:min(280px,100%);border-radius:10px;overflow:hidden;background:#00000008;text-decoration:none;color:inherit}
.bubble .doc-card img.doc-capa{display:block;width:100%;height:140px;max-height:none;object-fit:cover;object-position:top;border-radius:0;background:#fff}
.doc-linha{display:flex;align-items:center;gap:10px;padding:10px}
.doc-ico{flex:0 0 34px;height:40px;border-radius:5px;background:#e5534b;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:700;letter-spacing:.3px}
.doc-ico:not([data-ext="PDF"]){background:#5b7cc9}
.doc-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.doc-info strong{font-size:13px;font-weight:500;color:#1f3a2b;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.doc-info small{font-size:11px;color:#6f8476}
.doc-card:hover{background:#0000000d}
/* Capa dos PDFs na lista da pasta e na bandeja de anexos */
.material-capa{flex:0 0 38px;width:38px;height:50px;object-fit:cover;object-position:top;border-radius:4px;background:#fff;box-shadow:0 0 0 1px #dfe8e1}
#docs-dialog .material-item img.material-capa{width:38px;height:50px;border:0;border-radius:4px}
.attachment-thumbs .thumb img+.thumb-ext{position:absolute;left:3px;bottom:3px;background:#e5534b;color:#fff;font-size:8px;font-weight:700;border-radius:3px;padding:1px 4px}
.attachment-thumbs .thumb:has(.thumb-ext) img{object-position:top;background:#fff}
/* Agenda (visita ou conversa no escritório): cartões e botões sem borda */
#visita-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding-bottom:22px}
.vs-cliente{margin:0 0 20px;padding:13px 16px;border-radius:13px;background:#f1f6f3;color:#5d7766;font-size:12.5px;line-height:1.6}
#visita-form{display:flex;flex-direction:column;gap:18px;margin:0}
.vs-tipos{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.vs-tipo{position:relative;display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;background:#f4f7f5;cursor:pointer;transition:background .15s,box-shadow .15s}
.vs-tipo input{position:absolute;opacity:0;pointer-events:none}
.vs-tipo-icone{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff;font-size:21px}
.vs-tipo-texto{display:flex;flex-direction:column;gap:3px;min-width:0}
.vs-tipo-texto strong{font-size:13.5px;color:#1f3a2b}
.vs-tipo-texto small{font-size:11.5px;color:#7a8f81;line-height:1.35}
.vs-tipo:has(input:checked){background:#e3f1e8;box-shadow:inset 0 0 0 2px #4d9570}
.vs-tipo:has(input:focus-visible){outline:2px solid #4d9570;outline-offset:2px}
.vs-linha{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:14px;align-items:end}
.vs-campo{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500;color:#4e6656}
.vs-duracoes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.vs-duracoes label,.vs-pill{position:relative;cursor:pointer}
.vs-duracoes input,.vs-pill input{position:absolute;opacity:0;pointer-events:none}
.vs-duracoes span,.vs-pill span{display:grid;place-items:center;min-height:42px;padding:0 10px;border-radius:11px;background:#f1f5f2;color:#3e5a49;font-size:12.5px;font-weight:600;transition:background .15s,color .15s}
.vs-duracoes input:checked+span,.vs-pill input:checked+span{background:#2f7650;color:#fff}
.vs-duracoes input:focus-visible+span,.vs-pill input:focus-visible+span{outline:2px solid #4d9570;outline-offset:2px}
.vs-gerente{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:14px;background:#f7f9f8}
.vs-switch{display:flex;align-items:center;gap:12px;cursor:pointer}
.vs-switch input{position:absolute;opacity:0;pointer-events:none}
.vs-trilho{flex:none;position:relative;width:44px;height:26px;border-radius:13px;background:#cfdad3;transition:background .15s}
.vs-trilho::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .15s}
.vs-switch input:checked+.vs-trilho{background:#2f7650}
.vs-switch input:checked+.vs-trilho::after{transform:translateX(18px)}
.vs-switch input:focus-visible+.vs-trilho{outline:2px solid #4d9570;outline-offset:2px}
.vs-switch-texto{display:flex;flex-direction:column;gap:2px}
.vs-switch-texto strong{font-size:13.5px;color:#1f3a2b}
.vs-switch-texto small{font-size:11.5px;color:#7a8f81}
.vs-gerentes{display:flex;flex-wrap:wrap;gap:8px}
.vs-gerentes[hidden]{display:none}
.vs-horarios-bloco{display:flex;flex-direction:column;gap:10px}
.vs-horarios-topo{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.vs-horarios-topo strong{font-size:12.5px;color:#4e6656}
#vs-legenda{font-size:11.5px;color:#2f7650}
.vs-horarios{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:6px;max-height:212px;overflow:auto;padding:2px}
.vs-slot{border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:44px;border-radius:11px;background:#eaf4ee;color:#255e3e;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,color .15s}
.vs-slot:hover{background:#d7ecdf}
.vs-slot.escolhido{background:#2f7650;color:#fff}
.vs-slot.ocupado{background:#f3f3f1;color:#a3a9a5;cursor:not-allowed;text-decoration:line-through}
.vs-slot small{font-size:9.5px;font-weight:500;text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}
.vs-carregando{grid-column:1/-1;margin:4px 0;font-size:12px;color:#7a8f81}
.vs-hora-manual{display:flex;align-items:center;gap:10px;font-size:12px;color:#7a8f81}
.vs-hora-manual input{max-width:130px}
.vs-resumo{margin:0;padding:12px 14px;border-radius:12px;background:#eef6f1;color:#255e3e;font-size:13px;font-weight:600;line-height:1.4}
.vs-salvar{min-height:48px;font-size:14px}
#visita-lista{margin-top:22px}
#visita-lista:empty{display:none}
.visita-item{display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#f6f9f7;border:0;border-radius:14px;padding:14px 16px;margin-bottom:8px}
.visita-item.feito{opacity:.6}
.visita-icone{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff;font-size:18px}
.visita-item .lembrete-info{flex:1;min-width:170px}
.visita-acoes{display:flex;gap:6px;flex-wrap:wrap}
.visita-acoes button{border:0;min-height:34px;border-radius:9px;padding:0 12px;font-size:11.5px}
.visita-acoes .secondary{background:#eef3ef;color:#3e5a49}
.visita-acoes .finish-btn{background:#e4f1e8;color:#3e7050}
@media (max-width:520px){.vs-tipos{grid-template-columns:1fr}.vs-linha{grid-template-columns:1fr}.vs-tipo{padding:12px}}
#visita-form label.vs-tipo,#visita-form label.vs-switch{flex-direction:row;align-items:center;text-align:left;justify-content:flex-start;margin:0}
#visita-form .vs-tipo-texto,#visita-form .vs-switch-texto{align-items:flex-start;text-align:left}
#visita-form .vs-duracoes label,#visita-form .vs-pill{margin:0;display:block}
#visita-form .vs-hora-manual{flex-direction:row;align-items:center}
@media (max-width:520px){#visita-form label.vs-tipo{padding:11px 12px}#visita-form .vs-tipo-icone{width:38px;height:38px;font-size:19px}}
#visita-form .vs-tipo:has(input:checked){box-shadow:none;background:#2f7650}
#visita-form .vs-tipo:has(input:checked) .vs-tipo-texto strong{color:#fff}
#visita-form .vs-tipo:has(input:checked) .vs-tipo-texto small{color:#d6eadd}
