@import url('https://fonts.cdnfonts.com/css/rawline');
:root{--green:#064f43;--green2:#087954;--lime:#b8f20a;--ink:#0a2a49;--muted:#6f8497;--line:#dce7e9;--soft:#f6faf9;--user:#dcf8e4}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;font-family:'Rawline',Arial,sans-serif;font-weight:400;color:var(--ink);background:#fff}body{overflow:hidden}button,textarea,a{font:inherit}.chat-app{height:100dvh;display:grid;grid-template-columns:350px minmax(0,1fr);overflow:hidden}.campaign-sidebar{position:relative;height:100dvh;background:#064f43;color:#fff;overflow:hidden;display:flex;flex-direction:column;border-right:1px solid rgba(0,0,0,.08)}.side-candidate{position:relative;z-index:2;min-height:285px;display:flex;align-items:flex-end;padding:18px 20px 0 0}.side-candidate>img{width:190px;height:270px;object-fit:contain;object-position:left bottom;filter:drop-shadow(0 14px 22px rgba(0,0,0,.2))}.side-candidate-copy{padding:0 0 42px 0;line-height:.98}.side-candidate-copy strong{display:block;font-size:30px;font-weight:800;letter-spacing:-.6px}.side-candidate-copy span{display:block;margin-top:10px;font-size:16px}.side-candidate-copy b{display:block;margin-top:6px;color:var(--lime);font-size:31px;font-weight:800}.campaign-sidebar blockquote{position:relative;z-index:3;margin:-8px 26px 20px 155px;font-size:15px;line-height:1.45;font-style:italic}.sidebar-nav{position:relative;z-index:4;display:flex;flex-direction:column;gap:5px;padding:0 18px}.sidebar-nav a,.sidebar-nav button{border:0;background:transparent;color:#fff;text-decoration:none;width:100%;min-height:54px;border-radius:12px;padding:0 16px;display:flex;align-items:center;gap:14px;text-align:left;cursor:pointer;font-weight:500}.sidebar-nav a:hover,.sidebar-nav button:hover,.sidebar-nav .active{background:#087954}.sidebar-nav img{width:23px;height:23px;filter:brightness(0) invert(1)}.sidebar-city{position:absolute;left:0;right:0;bottom:0;height:250px;z-index:1}.sidebar-city>img{width:100%;height:100%;object-fit:cover}.city-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,79,67,.05),rgba(6,79,67,.45) 45%,#064f43 100%)}.city-slogan{position:absolute;left:34px;bottom:24px;transform:rotate(-4deg);font-style:italic}.city-slogan span,.city-slogan strong{display:block;font-size:26px}.city-slogan strong{margin-left:18px;color:var(--lime);font-weight:500}.chat-panel{height:100dvh;min-width:0;position:relative;background:#fbfdfd;overflow:hidden}.desktop-topbar{height:74px;position:absolute;z-index:10;left:0;right:0;top:0;background:rgba(255,255,255,.96);border-bottom:1px solid #e4ecee;display:flex;align-items:center;justify-content:space-between;padding:0 34px}.back-index{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#173d55;border:1px solid #d7e2e5;border-radius:999px;padding:10px 16px;background:#fff;font-weight:600}.back-index img{width:19px}.online{display:flex;gap:9px;align-items:flex-start}.online i,.mobile-status i{width:12px;height:12px;border-radius:50%;background:#08b950;margin-top:3px}.online b{display:block;color:#087545;font-weight:700}.online span{display:block;color:#7b91a2;font-size:11px;margin-top:2px}.mobile-chat-header{display:none}.messages{height:100%;overflow:auto;padding:94px max(34px,calc((100vw - 350px - 1120px)/2)) 130px;scroll-behavior:smooth}.row{display:flex;align-items:flex-end;gap:11px;margin:16px 0}.row.user{justify-content:flex-end;padding-left:150px}.mini{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 5px 15px rgba(20,60,70,.12)}.message-stack{max-width:min(720px,72vw)}.row.user .message-stack{align-items:flex-end;display:flex;flex-direction:column}.bubble{display:inline-block;width:fit-content;max-width:100%;padding:13px 17px;border-radius:16px;border:1px solid #dfe8eb;background:#fff;box-shadow:0 8px 24px rgba(15,55,70,.06)}.row.bot .bubble{border-bottom-left-radius:6px}.row.user .bubble{background:var(--user);border-color:#c1eacb;border-bottom-right-radius:6px}.bubble p{margin:0;font-size:15px;line-height:1.48;font-weight:400}.bubble strong{font-weight:700}.bubble time{display:block;text-align:right;color:#7d93a5;font-size:10px;margin-top:6px}.typing{display:flex;gap:5px;padding:4px}.typing i{width:7px;height:7px;border-radius:50%;background:#9aadb7;animation:b 1s infinite}.typing i:nth-child(2){animation-delay:.14s}.typing i:nth-child(3){animation-delay:.28s}@keyframes b{50%{transform:translateY(-4px);opacity:.5}}.suggestion-confirm{display:flex;gap:9px;margin:2px 0 18px 55px}.suggestion-confirm button{min-height:42px;border-radius:11px;padding:9px 15px;border:1px solid #cddeda;background:#fff;color:#154a40;cursor:pointer;font-weight:600}.suggestion-confirm .yes{background:#087954;color:#fff;border-color:#087954}.document-row{width:100%;margin:18px 0 24px}.pdf-full-card{width:100%;background:#fff;border:1px solid #d9e4e7;border-radius:16px;box-shadow:0 16px 42px rgba(15,55,70,.1);overflow:hidden}.pdf-toolbar{height:62px;background:#173037;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 20px}.pdf-toolbar span{display:block;font-size:9px;letter-spacing:.14em;color:#aee8d5}.pdf-toolbar strong{display:block;margin-top:2px;font-size:13px;font-weight:500}.pdf-actions{display:flex;gap:7px}.pdf-actions a,.pdf-actions button{width:38px;height:38px;border-radius:9px;border:1px solid rgba(255,255,255,.2);background:transparent;display:grid;place-items:center;cursor:pointer}.pdf-actions img{width:20px;height:20px;filter:brightness(0) invert(1)}.pdf-frame-wrap{width:100%;height:calc(100dvh - 245px);min-height:560px;background:#30383b}.pdf-full-frame{display:block;border:0;width:100%;height:100%;background:#fff}.pdf-frame-wrap:fullscreen{height:100vh;background:#222}.pdf-frame-wrap:fullscreen .pdf-full-frame{height:100vh}.composer-zone{position:absolute;z-index:11;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e0e9eb;padding:11px max(34px,calc((100vw - 350px - 1080px)/2)) 9px}.composer{height:58px;border:1px solid #d8e3e6;border-radius:18px;display:grid;grid-template-columns:42px 1fr 48px;align-items:center;padding:5px 7px;background:#fff;box-shadow:0 8px 24px rgba(15,55,70,.05)}.pin{width:38px;height:38px;border-radius:50%;background:#f1f7f5;display:grid;place-items:center}.pin img{width:21px}.composer textarea{border:0;outline:0;resize:none;min-height:40px;max-height:40px;padding:10px 8px;color:#163a50;font-size:15px}.send{width:44px;height:44px;border-radius:50%;border:0;background:#087954;display:grid;place-items:center;cursor:pointer}.send img{width:21px;filter:brightness(0) invert(1)}.context-lock{text-align:center;font-size:10px;color:#81939d;margin-top:5px}.mobile-status{display:none}
@media(max-width:900px){.chat-app{display:block}.campaign-sidebar,.desktop-topbar{display:none}.chat-panel{height:100dvh}.mobile-chat-header{display:grid;grid-template-columns:38px 48px minmax(0,1fr) auto;gap:8px;align-items:center;position:absolute;z-index:20;left:0;right:0;top:0;height:calc(76px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 10px 0;background:#fff;border-bottom:1px solid #e2eaec}.mobile-back{width:36px;height:36px;display:grid;place-items:center}.mobile-back img{width:24px}.mobile-avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid #a9dcca}.mobile-title{min-width:0}.mobile-title strong{display:block;font-size:15px;white-space:nowrap}.mobile-title strong span{color:#09b54d}.mobile-title small{display:block;color:#73899c;font-size:10.5px;margin-top:4px}.mobile-title small b{color:#0a2a49}.mobile-status{display:flex;align-items:center;gap:6px;font-size:9px;color:#087545}.mobile-status i{width:9px;height:9px;margin:0}.messages{padding:calc(90px + env(safe-area-inset-top)) 9px calc(112px + env(safe-area-inset-bottom))}.row{gap:7px;margin:13px 0}.row.user{padding-left:45px}.mini{width:33px;height:33px}.message-stack{max-width:calc(100vw - 58px)}.bubble{padding:11px 13px}.bubble p{font-size:13.5px}.suggestion-confirm{margin-left:40px;gap:7px}.suggestion-confirm button{font-size:11px;padding:8px 10px}.document-row{margin:14px 0 20px}.pdf-full-card{border-radius:12px}.pdf-toolbar{height:54px;padding:0 9px 0 12px}.pdf-toolbar strong{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-actions a,.pdf-actions button{width:34px;height:34px}.pdf-frame-wrap{height:calc(100dvh - 220px);min-height:430px}.composer-zone{padding:8px 8px calc(7px + env(safe-area-inset-bottom))}.composer{height:54px;border-radius:17px;grid-template-columns:37px 1fr 44px}.pin{width:34px;height:34px}.composer textarea{font-size:14px;padding-left:5px}.send{width:40px;height:40px}.context-lock{font-size:9px}}
@media(max-width:390px){.mobile-chat-header{grid-template-columns:34px 42px minmax(0,1fr) auto;gap:5px}.mobile-avatar{width:41px;height:41px}.mobile-title strong{font-size:13.5px}.mobile-title small{font-size:9.5px}.pdf-frame-wrap{height:calc(100dvh - 215px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.typing i{animation:none!important}}

.chat-location-btn{margin-top:12px;min-height:42px;border:1px solid #b9dcd0;border-radius:11px;background:#edf9f3;color:#08734f;padding:8px 13px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-family:'Rawline',Arial,sans-serif;font-weight:600}
.chat-location-btn img{width:18px;height:18px;filter:invert(34%) sepia(43%) saturate(1112%) hue-rotate(105deg)}
@media(max-width:900px){.side-candidate-copy span{font-size:14px}.chat-location-btn{width:100%;justify-content:center}}


/* V31.4 legado — mantido por compatibilidade; V31.5 usa .pdf-inline-* */
.pdf-full-card.v314{border-radius:18px;border:1px solid #d6e3e6;background:#fff;box-shadow:0 18px 48px rgba(13,56,65,.10);overflow:hidden}
.pdf-full-card.v314 .pdf-toolbar{height:auto;min-height:68px;padding:10px 14px 10px 18px;gap:12px;position:sticky;top:0;z-index:5;background:linear-gradient(135deg,#12353a,#0b5550)}
.pdf-full-card.v314 .pdf-toolbar-copy{min-width:0}
.pdf-full-card.v314 .pdf-toolbar-copy span{font-size:9px;letter-spacing:.14em;color:#a9e7d2;font-weight:600}
.pdf-full-card.v314 .pdf-toolbar-copy strong{max-width:620px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;color:#fff;font-weight:600}
.pdf-full-card.v314 .pdf-actions{flex:none}
.pdf-full-card.v314 .pdf-actions a,.pdf-full-card.v314 .pdf-actions button{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22)}
.pdf-pages{background:#edf1f1;padding:18px;display:grid;gap:18px;max-height:none;overflow:visible}
.pdf-page{margin:0 auto;width:min(100%,920px);background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.13);position:relative}
.pdf-page img{display:block;width:100%;height:auto;object-fit:contain;background:#fff}
.pdf-page-num{position:absolute;right:10px;bottom:10px;background:rgba(10,38,42,.78);color:#fff;border-radius:999px;padding:5px 9px;font-size:10px;line-height:1}
.pdf-viewer-fallback{height:calc(100dvh - 250px);min-height:560px;background:#30383b}
.pdf-viewer-fallback iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.pdf-pages:fullscreen,.pdf-viewer-fallback:fullscreen{overflow:auto;max-height:100vh;height:100vh;padding:20px;background:#232a2b}
.pdf-pages:fullscreen .pdf-page{width:min(100%,1100px)}
@media(max-width:900px){
  .document-row{margin:14px 0 22px!important}
  .pdf-full-card.v314{border-radius:13px}
  .pdf-full-card.v314 .pdf-toolbar{min-height:58px;padding:8px 8px 8px 11px}
  .pdf-full-card.v314 .pdf-toolbar-copy strong{max-width:165px;font-size:12px}
  .pdf-full-card.v314 .pdf-actions{gap:5px}
  .pdf-full-card.v314 .pdf-actions a,.pdf-full-card.v314 .pdf-actions button{width:34px;height:34px;border-radius:9px}
  .pdf-pages{padding:7px;gap:8px;background:#e8eded}
  .pdf-page{width:100%;border-radius:5px;box-shadow:0 5px 15px rgba(0,0,0,.12)}
  .pdf-page-num{right:6px;bottom:6px;padding:4px 7px;font-size:9px}
  .pdf-viewer-fallback{height:calc(100dvh - 220px);min-height:440px}
}

.pdf-full-card.v314 .pdf-actions a,.pdf-full-card.v314 .pdf-actions button{width:auto;min-width:42px;padding:0 11px;display:flex;align-items:center;justify-content:center;gap:7px;color:#fff;text-decoration:none}
.pdf-full-card.v314 .pdf-actions .action-label{font-size:11px;font-weight:600;white-space:nowrap}
@media(max-width:1100px){.pdf-full-card.v314 .pdf-actions .action-label{display:none}.pdf-full-card.v314 .pdf-actions a,.pdf-full-card.v314 .pdf-actions button{width:38px;min-width:38px;padding:0}}
@media(max-width:900px){.pdf-full-card.v314 .pdf-actions a,.pdf-full-card.v314 .pdf-actions button{width:34px;min-width:34px;padding:0}}

/* V31.5 — PDF diretamente no fluxo do chat, sem cabeçalho */
.document-row{align-items:flex-start;margin:8px 0 18px}.document-row .document-stack{width:min(980px,calc(100vw - 430px));max-width:none}.pdf-inline-wrap{width:100%;background:transparent}.pdf-inline-pages{display:grid;gap:14px;width:100%;background:transparent}.pdf-inline-page{margin:0;width:100%;background:#fff;border:1px solid #dbe5e7;border-radius:14px;overflow:hidden;box-shadow:0 12px 34px rgba(14,54,65,.10)}.pdf-inline-page img{display:block;width:100%;height:auto;background:#fff}.pdf-inline-fallback{width:100%;height:calc(100dvh - 215px);min-height:570px;border:1px solid #dbe5e7;border-radius:14px;overflow:hidden;background:#eef2f2;box-shadow:0 12px 34px rgba(14,54,65,.10)}.pdf-inline-fallback iframe{display:block;width:100%;height:100%;border:0;background:#fff}.pdf-inline-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:9px}.pdf-inline-actions a,.pdf-inline-actions button{min-height:40px;border-radius:10px;border:1px solid #cfe0dc;background:#fff;color:#0a5c49;text-decoration:none;padding:8px 12px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-weight:600;font-size:12px;box-shadow:0 4px 13px rgba(12,64,58,.05)}.pdf-inline-actions img{width:18px;height:18px}.pdf-inline-pages:fullscreen,.pdf-inline-fallback:fullscreen{overflow:auto;width:100vw;height:100vh;max-height:100vh;padding:18px;background:#e9eeee}.pdf-inline-pages:fullscreen .pdf-inline-page{max-width:1150px;margin:0 auto}.quick-actions{display:flex;gap:9px;margin:3px 0 20px 55px}.quick-actions button{min-height:42px;border-radius:11px;padding:9px 15px;border:1px solid #cddeda;background:#fff;color:#154a40;cursor:pointer;font-weight:600}.quick-actions .quick-primary{background:#087954;color:#fff;border-color:#087954}.location-consent .message-stack{max-width:560px}.location-consent-actions{display:flex;gap:8px;margin-top:12px}.location-consent-actions button{min-height:40px;border-radius:10px;padding:8px 12px;border:1px solid #cbded8;background:#fff;color:#0b644d;cursor:pointer;font-weight:600}.location-consent-actions .allow{background:#087954;color:#fff;border-color:#087954}
@media(max-width:900px){.document-row .document-stack{width:calc(100vw - 49px);max-width:none}.pdf-inline-pages{gap:8px}.pdf-inline-page{border-radius:8px;box-shadow:0 7px 18px rgba(14,54,65,.09)}.pdf-inline-fallback{height:calc(100dvh - 195px);min-height:470px;border-radius:8px}.pdf-inline-actions{justify-content:stretch;display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.pdf-inline-actions a,.pdf-inline-actions button{justify-content:center;padding:7px 5px;font-size:10.5px;min-height:38px}.pdf-inline-actions img{width:16px;height:16px}.quick-actions{margin-left:40px;gap:7px;flex-wrap:wrap}.quick-actions button{font-size:11px;padding:8px 10px}.location-consent-actions{flex-direction:column}.location-consent-actions button{width:100%}}

/* V31.6 — materiais, seletor de bairro e experiência mobile */
.desktop-topbar{justify-content:space-between}.desktop-neighborhood-trigger{border:1px solid #cfe2dc;background:#fff;border-radius:14px;min-height:48px;padding:7px 14px 7px 10px;display:flex;align-items:center;gap:10px;color:#0b5545;cursor:pointer;box-shadow:0 8px 22px rgba(7,79,63,.07)}.desktop-neighborhood-trigger>img{width:27px;height:27px;filter:invert(34%) sepia(55%) saturate(880%) hue-rotate(105deg)}.desktop-neighborhood-trigger span{text-align:left;line-height:1.05}.desktop-neighborhood-trigger b{display:block;font-size:13px}.desktop-neighborhood-trigger small{display:block;margin-top:4px;color:#789088;font-size:10px}.verified-badge{display:inline-grid!important;place-items:center;width:17px;height:17px;border-radius:50%;background:#1687f8;color:#fff!important;font-size:11px;line-height:1;vertical-align:-2px;box-shadow:0 0 0 2px #fff}.context-lock{display:none!important}.pin{border:0;cursor:pointer}.pin:hover{background:#e2f3ec}.composer textarea::placeholder{color:#8fa1ac}

.material-inline-wrap{width:100%;background:transparent}.document-row{align-items:flex-start;margin:8px 0 18px}.document-row .document-stack{width:min(980px,calc(100vw - 430px));max-width:none}.material-inline-pages{display:grid;gap:14px;width:100%;background:transparent}.material-inline-page{margin:0;width:100%;background:#fff;border:1px solid #dbe5e7;border-radius:15px;overflow:hidden;box-shadow:0 15px 38px rgba(14,54,65,.11);cursor:zoom-in;transition:transform .18s ease,box-shadow .18s ease}.material-inline-page:hover{transform:translateY(-1px);box-shadow:0 19px 44px rgba(14,54,65,.14)}.material-inline-page img{display:block;width:100%;height:auto;background:#fff}.material-inline-fallback{width:100%;height:calc(100dvh - 215px);min-height:570px;border:1px solid #dbe5e7;border-radius:14px;overflow:hidden;background:#eef2f2;box-shadow:0 12px 34px rgba(14,54,65,.10)}.material-inline-fallback iframe{display:block;width:100%;height:100%;border:0;background:#fff}.material-inline-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:11px}.material-inline-actions a,.material-inline-actions button{min-height:45px;border-radius:12px;border:1px solid #bad9cf;background:#f4fbf8;color:#075c49;text-decoration:none;padding:9px 15px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:700;font-size:12px;box-shadow:0 6px 18px rgba(12,64,58,.07);transition:.18s ease}.material-inline-actions a:hover,.material-inline-actions button:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(12,64,58,.12)}.material-inline-actions img{width:19px;height:19px}.material-inline-actions .material-fullscreen{background:#075c49;color:#fff;border-color:#075c49}.material-inline-actions .material-fullscreen img{filter:brightness(0) invert(1)}.material-inline-actions a[target]{background:#0d72d8;color:#fff;border-color:#0d72d8}.material-inline-actions a[target] img{filter:brightness(0) invert(1)}.material-inline-actions .material-download{background:#087954;color:#fff;border-color:#087954}.material-inline-actions .material-download img{filter:brightness(0) invert(1)}
@keyframes downloadPulse{0%,100%{transform:scale(1);box-shadow:0 8px 22px rgba(8,121,84,.18)}45%{transform:scale(1.055);box-shadow:0 0 0 10px rgba(184,242,10,.16),0 13px 32px rgba(8,121,84,.25)}}.pulse-download{animation:downloadPulse 1.25s ease-in-out infinite}

.quick-actions{display:flex;gap:9px;margin:3px 0 20px 55px;flex-wrap:wrap}.quick-actions button{min-height:42px;border-radius:11px;padding:9px 15px;border:1px solid #cddeda;background:#fff;color:#154a40;cursor:pointer;font-weight:600}.quick-actions .quick-primary{background:#087954;color:#fff;border-color:#087954}.quick-actions .quick-suggest{background:#eff9f3;border-color:#b8decf;color:#075b47}.location-consent .message-stack{max-width:560px}.location-consent-actions{display:flex;gap:8px;margin-top:12px}.location-consent-actions button{min-height:40px;border-radius:10px;padding:8px 12px;border:1px solid #cbded8;background:#fff;color:#0b644d;cursor:pointer;font-weight:600}.location-consent-actions .allow{background:#087954;color:#fff;border-color:#087954}

.chat-modal,.material-viewer{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;opacity:0;visibility:hidden;pointer-events:none;transition:.2s ease}.chat-modal.is-open,.material-viewer.is-open{opacity:1;visibility:visible;pointer-events:auto}.chat-modal-backdrop,.material-viewer-backdrop{position:absolute;inset:0;background:rgba(2,37,29,.62);backdrop-filter:blur(7px)}.chat-modal-card{position:relative;z-index:2;width:min(560px,calc(100vw - 28px));background:#fff;border:1px solid rgba(8,121,84,.12);border-radius:24px;padding:25px;box-shadow:0 32px 90px rgba(0,41,31,.28)}.chat-modal-close{position:absolute;right:14px;top:14px;width:38px;height:38px;border-radius:50%;border:0;background:#edf5f2;color:#0a5d49;font-size:25px;cursor:pointer}.chat-modal-icon{width:58px;height:58px;border-radius:18px;background:#e9f8ef;display:grid;place-items:center;margin-bottom:14px}.chat-modal-icon img{width:31px;filter:invert(34%) sepia(51%) saturate(947%) hue-rotate(106deg)}.chat-modal-card>small{font-size:10px;letter-spacing:.15em;color:#087954;font-weight:700}.chat-modal-card h2{margin:6px 0 6px;font-size:26px;line-height:1.05}.chat-modal-card>p{margin:0 0 16px;color:#70858f;font-size:13px}.chat-search{height:48px;border:1px solid #d7e4e1;border-radius:13px;display:flex;align-items:center;gap:9px;padding:0 13px;margin-bottom:10px}.chat-search img{width:20px;opacity:.62}.chat-search input{border:0;outline:0;width:100%;font:inherit;color:#173d55}.chat-modal-card select{width:100%;height:250px;border:1px solid #d7e4e1;border-radius:13px;padding:7px;background:#fbfdfc;color:#173d55;font:inherit;outline:0}.chat-modal-card select option{padding:10px 8px}.chat-modal-apply{width:100%;min-height:48px;border:0;border-radius:13px;margin-top:12px;background:#087954;color:#fff;font-weight:700;cursor:pointer}.material-viewer{padding:14px;z-index:1100}.material-viewer-card{position:relative;z-index:2;width:min(1260px,96vw);height:94vh;background:#eef3f1;border-radius:18px;overflow:hidden;box-shadow:0 35px 100px rgba(0,0,0,.38);display:grid;grid-template-rows:58px 1fr}.material-viewer-top{display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#073f35;color:#fff}.material-viewer-top strong{font-weight:600}.material-viewer-top button{width:40px;height:40px;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:28px;cursor:pointer}.material-viewer-pages{overflow:auto;padding:18px;display:grid;gap:18px}.material-viewer-pages img{display:block;width:min(100%,1050px);height:auto;margin:0 auto;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.16);border-radius:8px}.material-viewer-pages iframe{width:100%;height:100%;border:0;background:#fff}

.chat-list-card{margin:0 0 22px 55px;width:min(860px,calc(100% - 75px));background:#fff;border:1px solid #dbe7e4;border-radius:18px;padding:16px;box-shadow:0 12px 32px rgba(9,58,51,.08)}.chat-list-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.chat-list-title strong{font-size:16px}.chat-list-title span{font-size:11px;color:#7d928b}.chat-list-title button{border:1px solid #cfe0db;background:#f3faf6;color:#0b634e;border-radius:10px;padding:8px 10px;cursor:pointer;font-weight:600;font-size:11px}.neighborhood-directory section+section{margin-top:15px;padding-top:13px;border-top:1px solid #edf2f0}.neighborhood-directory h4{margin:0 0 9px;color:#0a5c49;font-size:12px}.neighborhood-chip-grid{display:flex;gap:7px;flex-wrap:wrap}.neighborhood-chip-grid button{border:1px solid #d4e4df;background:#fbfdfc;color:#25495a;border-radius:999px;padding:8px 11px;cursor:pointer;font-size:11px}.neighborhood-chip-grid button:hover{background:#087954;color:#fff;border-color:#087954}.material-download-list{display:grid;gap:8px}.material-download-list article{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:10px;border:1px solid #e2ece9;border-radius:13px;background:#fbfdfc}.material-region-icon{width:40px;height:40px;border-radius:11px;background:#eaf8ef;display:grid;place-items:center}.material-region-icon img{width:21px;filter:invert(35%) sepia(45%) saturate(910%) hue-rotate(105deg)}.material-download-list strong{display:block;font-size:13px}.material-download-list small{display:block;color:#7a9087;font-size:10px;margin-top:2px}.material-download-list a{background:#087954;color:#fff;text-decoration:none;border-radius:10px;padding:9px 12px;font-size:11px;font-weight:700}

@media(max-width:900px){body{overflow:hidden}.mobile-chat-header{grid-template-columns:38px 48px minmax(0,1fr)!important}.mobile-title strong{display:flex!important;align-items:center;gap:5px}.messages{padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}.composer-zone{position:absolute!important;bottom:0!important;padding:9px 9px calc(9px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px);box-shadow:0 -8px 25px rgba(12,55,65,.07)}.composer{height:58px!important;border-radius:19px!important;box-shadow:0 8px 24px rgba(15,55,70,.08)!important}.composer textarea{font-size:15px!important}.document-row .document-stack{width:calc(100vw - 49px);max-width:none}.material-inline-pages{gap:8px}.material-inline-page{border-radius:10px;box-shadow:0 8px 20px rgba(14,54,65,.10)}.material-inline-fallback{height:calc(100dvh - 195px);min-height:470px;border-radius:8px}.material-inline-actions{justify-content:stretch;display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;position:sticky;bottom:74px;z-index:6;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);padding:7px;border-radius:12px;box-shadow:0 8px 24px rgba(11,59,55,.12)}.material-inline-actions a,.material-inline-actions button{justify-content:center;padding:7px 5px;font-size:10.5px;min-height:42px}.material-inline-actions img{width:16px;height:16px}.quick-actions{margin-left:40px;gap:7px}.quick-actions button{font-size:11px;padding:8px 10px}.location-consent-actions{flex-direction:column}.location-consent-actions button{width:100%}.chat-list-card{margin-left:40px;width:calc(100% - 48px);padding:11px;border-radius:14px}.chat-list-title{align-items:flex-start}.neighborhood-chip-grid{gap:6px}.neighborhood-chip-grid button{font-size:10px;padding:7px 9px}.material-download-list article{grid-template-columns:36px 1fr auto;padding:8px}.material-region-icon{width:34px;height:34px}.material-download-list a{padding:8px 10px}.chat-modal{align-items:end;padding:8px}.chat-modal-card{border-radius:24px 24px 16px 16px;padding:22px 16px 16px}.chat-modal-card select{height:230px}.material-viewer{padding:0}.material-viewer-card{width:100vw;height:100dvh;border-radius:0;grid-template-rows:64px 1fr}.material-viewer-pages{padding:8px;gap:10px}.material-viewer-pages img{width:100%;border-radius:5px}}

/* =========================================================
   V31.8 — MATERIAL EM TELA, MOBILE E LOCALIZAÇÃO
   ========================================================= */
html,body,button,input,select,textarea,a{font-family:'Rawline',Arial,sans-serif!important;font-weight:400}
.mobile-title strong,.side-candidate-copy strong,.side-candidate-copy b,.bubble strong,.chat-list-title strong{font-weight:700}
.verified-badge{display:inline-grid!important;place-items:center;width:16px;height:16px;border-radius:50%;background:#1685f8;color:#fff!important;font-size:10px;line-height:1;font-weight:800;flex:0 0 16px}
.desktop-neighborhood-trigger{border:1px solid #cfe0da;background:#fff;color:#075c49;border-radius:14px;min-height:48px;padding:7px 13px;display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left;box-shadow:0 5px 15px rgba(8,71,55,.05)}
.desktop-neighborhood-trigger img{width:23px;height:23px;filter:invert(32%) sepia(48%) saturate(840%) hue-rotate(106deg)}
.desktop-neighborhood-trigger b{display:block;font-weight:700;font-size:12px}.desktop-neighborhood-trigger small{display:block;font-size:10px;color:#71877f;margin-top:1px}
.chat-modal-location{width:100%;min-height:48px;border-radius:13px;border:1px solid #087954;background:#087954;color:#fff;font-weight:600;display:flex;align-items:center;justify-content:center;gap:9px;margin:13px 0 12px;cursor:pointer}
.chat-modal-location img{width:20px;height:20px;filter:brightness(0) invert(1)}

/* Material: ações sempre DEPOIS das páginas, nunca sobrepostas. */
.document-row{align-items:flex-start}.document-row .document-stack{width:min(1120px,calc(100vw - 410px));max-width:none}
.material-inline-wrap{width:100%;display:block}.material-inline-pages{display:grid;gap:12px;width:100%}
.material-inline-page{width:100%;margin:0;border:1px solid #d9e5e2;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 10px 26px rgba(9,55,48,.08);cursor:zoom-in;transform:none!important;transition:box-shadow .18s ease!important}
.material-inline-page:hover{transform:none!important;box-shadow:0 12px 30px rgba(9,55,48,.11)!important}.material-inline-page img{display:block;width:100%;height:auto;background:#fff}
.material-inline-actions{position:static!important;inset:auto!important;z-index:auto!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0!important;padding:0!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;border-radius:0!important}
.material-inline-actions a,.material-inline-actions button{min-height:48px!important;border-radius:11px!important;padding:9px 12px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-decoration:none!important;cursor:pointer!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important;transition:border-color .16s ease,background-color .16s ease!important;transform:none!important;background-image:none!important}
.material-inline-actions a:hover,.material-inline-actions button:hover{transform:none!important;box-shadow:none!important}
.material-inline-actions .material-fullscreen{background:#075c49!important;color:#fff!important;border:1px solid #075c49!important}.material-inline-actions .material-fullscreen img{filter:brightness(0) invert(1)!important}
.material-inline-actions a[target]{background:#146fc2!important;color:#fff!important;border:1px solid #146fc2!important}.material-inline-actions a[target] img{filter:brightness(0) invert(1)!important}
.material-inline-actions .material-download{background:#087954!important;color:#fff!important;border:1px solid #087954!important}.material-inline-actions .material-download img{filter:brightness(0) invert(1)!important}
@keyframes downloadPulseV318{0%,100%{box-shadow:0 0 0 0 rgba(8,121,84,.0)}50%{box-shadow:0 0 0 9px rgba(8,121,84,.14)}}
.pulse-download{animation:downloadPulseV318 1.25s ease-in-out infinite!important;transform:none!important}
.messages.auto-scrolling{cursor:progress;scroll-behavior:auto!important}.messages.auto-scrolling *{user-select:none}

/* Visualização em tela cheia com header limpo e fechar legível. */
.material-viewer{padding:0!important;background:#eef3f1}.material-viewer-backdrop{background:#eef3f1!important;backdrop-filter:none!important}
.material-viewer-card{width:100vw!important;height:100dvh!important;max-width:none!important;border-radius:0!important;display:grid!important;grid-template-rows:68px 1fr!important;background:#edf2f0!important;box-shadow:none!important}
.material-viewer-top{position:relative;z-index:3;height:68px;padding:0 18px;background:#064f43!important;color:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.14)}
.viewer-title-wrap{display:flex;align-items:center;gap:11px;min-width:0}.viewer-title-wrap>img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.8)}.viewer-title-wrap small{display:block;font-size:9px;letter-spacing:.14em;color:#bfe5d8}.viewer-title-wrap strong{display:block;max-width:min(65vw,760px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:14px}
.material-viewer-top .viewer-close{width:auto!important;height:42px!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:11px!important;background:#fff!important;color:#064f43!important;padding:0 13px!important;display:flex!important;align-items:center!important;gap:7px!important;font-size:12px!important;font-weight:600!important}.viewer-close img{width:19px;height:19px;filter:invert(23%) sepia(24%) saturate(1115%) hue-rotate(113deg)}
.material-viewer-pages{overflow:auto;padding:14px!important;display:grid;gap:14px;background:#e8eeec}.material-viewer-pages img{display:block;width:min(100%,1180px)!important;height:auto;margin:0 auto;background:#fff;border-radius:5px!important;box-shadow:0 8px 24px rgba(0,0,0,.12)}

/* Composer mobile: sem barra/scroll cinza no textarea. */
.composer textarea{overflow:hidden!important;scrollbar-width:none!important}.composer textarea::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

@media(max-width:900px){
 .messages{padding-left:5px!important;padding-right:5px!important;padding-bottom:calc(108px + env(safe-area-inset-bottom))!important}
 .document-row{width:calc(100% + 0px)!important;margin:10px 0 18px!important;display:block!important}.document-row>.mini{display:none!important}.document-row .document-stack{width:100%!important;max-width:none!important}.material-inline-wrap{width:100%!important}.material-inline-pages{gap:7px!important}.material-inline-page{border-radius:8px!important;border-left-width:1px;border-right-width:1px;box-shadow:0 6px 16px rgba(8,52,47,.08)!important}.material-inline-page img{width:100%!important;max-width:none!important}
 .material-inline-actions{position:static!important;bottom:auto!important;z-index:auto!important;background:transparent!important;backdrop-filter:none!important;padding:0!important;box-shadow:none!important;border-radius:0!important;margin-top:8px!important;gap:5px!important}
 .material-inline-actions a,.material-inline-actions button{font-size:10.5px!important;min-height:45px!important;padding:7px 4px!important;border-radius:9px!important}.material-inline-actions img{width:16px!important;height:16px!important}
 .material-viewer-card{grid-template-rows:64px 1fr!important}.material-viewer-top{height:64px;padding:0 10px}.viewer-title-wrap>img{width:36px;height:36px}.viewer-title-wrap strong{font-size:12px;max-width:52vw}.material-viewer-top .viewer-close{height:40px!important;padding:0 10px!important}.viewer-close span{display:inline}.material-viewer-pages{padding:6px!important;gap:8px!important}.material-viewer-pages img{width:100%!important;border-radius:3px!important}
 .composer-zone{padding:8px 7px calc(8px + env(safe-area-inset-bottom))!important}.composer{border-radius:17px!important;box-shadow:0 5px 18px rgba(10,54,47,.08)!important}.pin{border:0!important}.send{border:0!important}
}
@media(max-width:390px){.viewer-close span{display:none}.material-viewer-top .viewer-close{width:40px!important;padding:0!important;justify-content:center!important}}
@media(max-width:900px){
 body.material-presenting .composer-zone{transform:translateY(calc(100% + 8px));opacity:0;pointer-events:none;transition:transform .24s ease,opacity .2s ease}
 body:not(.material-presenting) .composer-zone{transform:translateY(0);opacity:1;transition:transform .24s ease,opacity .2s ease}
 body.material-presenting .messages{padding-bottom:12px!important}
}

/* =========================================================
   V31.9 — ROLAGEM MAIS LENTA, GLOW FINAL E MODAL REFINADO
   ========================================================= */
:root{--v319-lime:#B8F20A}
@keyframes downloadReadyGlow{0%,100%{box-shadow:0 0 0 0 rgba(184,242,10,0),0 8px 20px rgba(8,121,84,.14)}50%{box-shadow:0 0 0 8px rgba(184,242,10,.24),0 0 28px rgba(184,242,10,.38),0 10px 26px rgba(8,121,84,.18)}}
.material-inline-actions .material-download.download-ready{animation:downloadReadyGlow 1.35s ease-in-out infinite!important;border-color:#9fd304!important;box-shadow:0 0 0 0 rgba(184,242,10,0);transform:none!important}

/* Modal sem select nativo: lista pesquisável no padrão do site. */
.chat-modal-v319{width:min(600px,calc(100vw - 28px))!important;max-height:min(760px,calc(100dvh - 30px));display:flex;flex-direction:column;padding:24px!important;border-radius:25px!important;overflow:hidden}
.chat-modal-v319 .chat-modal-close{right:15px;top:15px;width:40px;height:40px;border-radius:12px;background:#f1f6f4;display:grid;place-items:center}.chat-modal-v319 .chat-modal-close img{width:20px;height:20px;filter:invert(30%) sepia(23%) saturate(900%) hue-rotate(108deg)}
.chat-modal-head{display:grid;grid-template-columns:58px 1fr;gap:13px;align-items:center;padding-right:48px}.chat-modal-head .chat-modal-icon{width:58px;height:58px;margin:0;border-radius:18px;background:#f0f9d9}.chat-modal-head .chat-modal-icon img{width:29px;filter:invert(25%) sepia(35%) saturate(1080%) hue-rotate(106deg)}.chat-modal-head small{display:block;color:#087954;font-size:9px;letter-spacing:.17em;font-weight:700}.chat-modal-head h2{margin:4px 0 4px;font-size:27px;line-height:1.03;color:#07392f;font-weight:700}.chat-modal-head p{margin:0;color:#70847d;font-size:12px;line-height:1.4}
.chat-modal-location{min-height:58px!important;border:1px solid #a8df08!important;background:var(--v319-lime)!important;color:#063d31!important;border-radius:15px!important;margin:17px 0 12px!important;padding:8px 13px!important;justify-content:flex-start!important;text-align:left!important}.chat-modal-location>img{width:24px!important;height:24px!important;filter:invert(20%) sepia(24%) saturate(1246%) hue-rotate(111deg)!important}.chat-modal-location span{display:block}.chat-modal-location strong{display:block;font-size:12.5px;font-weight:700}.chat-modal-location small{display:block;font-size:10px;opacity:.7;margin-top:2px}
.chat-modal-v319 .chat-search{height:49px;margin-bottom:10px;border-radius:14px;background:#fff}.chat-modal-v319 .chat-search:focus-within{border-color:#98cd06;box-shadow:0 0 0 3px rgba(184,242,10,.14)}
.chat-neighborhood-results{min-height:170px;max-height:310px;overflow:auto;padding:5px;border:1px solid #e0ebe6;border-radius:14px;background:#fbfdfc;scrollbar-width:thin;scrollbar-color:#c6d8d1 transparent}.chat-neighborhood-item{width:100%;min-height:56px;border:0;border-bottom:1px solid #edf2f0;border-radius:10px;background:transparent;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;padding:7px 9px;color:#173d55;cursor:pointer}.chat-neighborhood-item:last-child{border-bottom:0}.chat-neighborhood-item:hover{background:#f0f8f4}.chat-neighborhood-item.is-selected{background:#eff9d8;box-shadow:inset 0 0 0 1px #b8f20a}.chat-neighborhood-pin{width:34px;height:34px;border-radius:10px;background:#e8f5ee;display:grid;place-items:center}.chat-neighborhood-pin img{width:18px;filter:invert(34%) sepia(49%) saturate(760%) hue-rotate(107deg)}.chat-neighborhood-item strong{display:block;font-size:12px;font-weight:700}.chat-neighborhood-item small{display:block;font-size:9.5px;color:#7d9088;margin-top:2px}.chat-neighborhood-item em{font-style:normal;font-size:9px;padding:5px 8px;border-radius:999px;white-space:nowrap}.chat-neighborhood-item em.available{background:#e8f6ec;color:#087954}.chat-neighborhood-item em.soon{background:#f0f2f1;color:#83918c}.chat-neighborhood-empty{padding:30px 14px;text-align:center;color:#81918b;font-size:12px}.chat-modal-apply{min-height:50px!important;border-radius:13px!important;margin-top:12px!important;background:var(--v319-lime)!important;border:1px solid #a8df08!important;color:#063d31!important;font-weight:700!important}.chat-modal-apply:disabled{background:#edf1ef!important;border-color:#dfe6e3!important;color:#9aa8a3!important;cursor:not-allowed!important}

/* Localização no chat mantém a mesma identidade visual. */
.chat-location-btn,.location-consent-actions .allow{background:var(--v319-lime)!important;color:#063d31!important;border-color:#a8df08!important}.chat-location-btn img{filter:invert(20%) sepia(24%) saturate(1246%) hue-rotate(111deg)!important}
.desktop-neighborhood-trigger{border-color:#a8df08!important;background:var(--v319-lime)!important;color:#063d31!important}.desktop-neighborhood-trigger img{filter:invert(20%) sepia(24%) saturate(1246%) hue-rotate(111deg)!important}.desktop-neighborhood-trigger small{color:rgba(6,61,49,.7)!important}

@media(max-width:900px){.chat-modal-v319{width:100%;max-height:88dvh;border-radius:24px 24px 15px 15px!important;padding:18px 14px 14px!important}.chat-modal-head{grid-template-columns:48px 1fr;gap:10px}.chat-modal-head .chat-modal-icon{width:48px;height:48px;border-radius:15px}.chat-modal-head h2{font-size:23px}.chat-neighborhood-results{max-height:38dvh}.chat-modal-location{min-height:54px!important}.material-inline-actions .material-download.download-ready{animation:downloadReadyGlow 1.35s ease-in-out infinite!important}}


/* V31.11 HOTFIX — RESTAURA APRESENTAÇÃO ORIGINAL DO MATERIAL NO CHAT
   Não cria viewport/iframe interno: páginas ficam no fluxo da conversa. */
.material-inline-wrap{overflow:visible!important;max-height:none!important;height:auto!important}
.material-inline-pages{overflow:visible!important;max-height:none!important;height:auto!important;display:grid!important}
.material-inline-page{overflow:hidden!important;max-height:none!important;height:auto!important;cursor:zoom-in!important}
.material-inline-page img,.material-inline-page canvas{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;background:#fff!important}
.material-inline-actions{position:static!important;bottom:auto!important;top:auto!important}
.pdfjs-loading{min-height:220px;display:grid;place-items:center;align-content:center;gap:12px;background:#f5f8f7;border:1px solid #dce7e3;border-radius:12px;color:#42665d}
.pdfjs-loading span{width:32px;height:32px;border-radius:50%;border:3px solid #d7e4df;border-top-color:#087954;animation:pdfjsSpin .8s linear infinite}
.pdfjs-loading strong{font-size:12px;font-weight:600}@keyframes pdfjsSpin{to{transform:rotate(360deg)}}
.material-render-error{padding:26px;text-align:center;background:#fff;border:1px solid #dce7e3;border-radius:12px}.material-render-error p{margin:0 0 12px;color:#60766e}.material-render-error a{display:inline-flex;padding:10px 14px;border-radius:9px;background:#087954;color:#fff;text-decoration:none}
.material-viewer-pdf-page{width:min(100%,1180px);margin:0 auto;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.12);border-radius:5px;overflow:hidden}.material-viewer-pdf-page canvas{display:block;width:100%!important;height:auto!important}
@media(max-width:900px){.material-inline-wrap,.material-inline-pages{overflow:visible!important;max-height:none!important;height:auto!important}.material-inline-actions{position:static!important}.pdfjs-loading{min-height:180px}.material-viewer-pdf-page{width:100%;border-radius:3px}}

/* V31.12 — visualizador, sugestões, mídias e menu mobile */
.material-viewer,.material-viewer-card{min-height:0!important}.material-viewer-pages{overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;max-height:calc(100dvh - 68px)!important;touch-action:pan-y!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}.material-viewer-card{overflow:hidden!important}
.material-inline-actions{position:static!important;bottom:auto!important}.document-row,.document-stack,.material-inline-wrap,.material-inline-pages{overflow:visible!important;max-height:none!important}
.suggestion-multi{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 18px 55px}.suggestion-multi button{border:1px solid #cfe0db;background:#fff;color:#075c49;border-radius:12px;padding:9px 13px;font-weight:600;cursor:pointer}.suggestion-multi button:not(.choose-manual){background:#b8f20a;border-color:#a8dc09;color:#063d31}.suggestion-multi .choose-manual{background:#fff}
.neighborhood-media-gallery{margin-top:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(820px,72vw)}.neighborhood-photo{display:block;border-radius:12px;overflow:hidden;border:1px solid #dae7e3;background:#fff}.neighborhood-photo img{display:block;width:100%;height:auto}.neighborhood-video{width:100%;border-radius:12px;background:#081f1a;grid-column:1/-1}.media-row .message-stack{max-width:min(860px,76vw)}
.mobile-more{display:none}.mobile-more-menu{display:none}
@media(max-width:900px){.mobile-chat-header{grid-template-columns:38px 48px minmax(0,1fr) 38px!important}.mobile-more{display:flex;width:34px;height:34px;border:0;background:transparent;border-radius:50%;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:0;cursor:pointer}.mobile-more span{width:4px;height:4px;border-radius:50%;background:#0a2a49}.mobile-more-menu{position:absolute;right:8px;top:calc(68px + env(safe-area-inset-top));width:210px;background:#fff;border:1px solid #dce7e9;border-radius:14px;box-shadow:0 16px 40px rgba(8,50,60,.18);padding:7px;z-index:30}.mobile-more-menu.is-open{display:grid;gap:3px}.mobile-more-menu a,.mobile-more-menu button{display:flex;align-items:center;width:100%;min-height:42px;border:0;border-radius:9px;background:#fff;color:#0a2a49;text-decoration:none;padding:0 11px;text-align:left;font-size:12px}.mobile-more-menu a:hover,.mobile-more-menu button:hover{background:#f0f7f4}.suggestion-multi{margin-left:40px}.neighborhood-media-gallery{width:calc(100vw - 58px);grid-template-columns:1fr}.media-row .message-stack{max-width:calc(100vw - 58px)}.material-viewer-pages{max-height:calc(100dvh - 64px)!important}}


/* V31.13 — SCROLL TOTAL DO PDF EM TELA CHEIA + GLOW CONTÍNUO */
body.material-viewer-open{overflow:hidden!important;touch-action:none}.material-viewer{touch-action:pan-y pinch-zoom!important}.material-viewer-card{touch-action:pan-y pinch-zoom!important}.material-viewer-pages{overflow-y:scroll!important;overflow-x:hidden!important;pointer-events:auto!important;touch-action:pan-y pinch-zoom!important;overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin}.material-viewer-pages>*{pointer-events:auto!important}.material-inline-actions .material-download.download-ready{animation:downloadReadyGlow 1.15s ease-in-out infinite!important}@media(max-width:900px){.material-viewer-pages{padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}.viewer-close,.material-viewer-top .viewer-close{touch-action:manipulation!important}}


/* V31.14 PATCH — DOWNLOAD GLOW + MENU/BOTÕES MOBILE */
@keyframes downloadGlowV314{0%,100%{box-shadow:0 0 0 0 rgba(184,242,10,.16),0 10px 24px rgba(8,121,84,.18)}50%{box-shadow:0 0 0 8px rgba(184,242,10,.24),0 0 30px rgba(184,242,10,.62),0 12px 30px rgba(8,121,84,.22)}}
.material-inline-actions .material-download.download-ready{background:#087954!important;color:#fff!important;border-color:#087954!important;animation:downloadGlowV314 1.15s ease-in-out infinite!important;transform:none!important}
.material-inline-actions .material-download.download-ready img{filter:brightness(0) invert(1)!important}
@media(max-width:900px){
 .neighborhood-chip-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
 .neighborhood-chip-grid button{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;padding:0 14px!important;border:1px solid #d8e6e1!important;border-radius:13px!important;background:#fff!important;color:#062F28!important;font-size:12px!important;font-weight:650!important;box-shadow:0 6px 16px rgba(6,47,40,.05)!important;text-align:left!important}
 .neighborhood-chip-grid button:after{content:'→';font-size:17px;color:#087954;font-weight:800}
 .neighborhood-chip-grid button:active{background:#f1f9f5!important}
 .mobile-more-menu{right:8px!important;top:calc(66px + env(safe-area-inset-top))!important;width:min(268px,calc(100vw - 24px))!important;background:#fff!important;border:1px solid #dce8e4!important;border-radius:18px!important;box-shadow:0 22px 54px rgba(6,47,40,.22)!important;padding:9px!important;overflow:hidden!important}
 .mobile-more-title{display:block;padding:8px 10px 10px;border-bottom:1px solid #edf3f0;margin-bottom:4px}.mobile-more-title small{display:block;font-size:8px;letter-spacing:.18em;color:#789087}.mobile-more-title strong{display:block;margin-top:3px;color:#062F28;font-size:13px;font-weight:700}
 .mobile-more-menu a,.mobile-more-menu button{display:grid!important;grid-template-columns:34px 1fr!important;align-items:center!important;gap:9px!important;min-height:48px!important;padding:0 10px!important;border:0!important;border-radius:12px!important;background:#fff!important;color:#062F28!important;font-size:12px!important;font-weight:600!important;text-align:left!important;text-decoration:none!important}
 .mobile-more-menu a img,.mobile-more-menu button img{width:20px!important;height:20px!important;filter:invert(23%) sepia(25%) saturate(1066%) hue-rotate(112deg)!important}
 .mobile-more-menu a:hover,.mobile-more-menu button:hover,.mobile-more-menu a:active,.mobile-more-menu button:active{background:#eff8f4!important}
 .mobile-more-menu button[data-action='neighborhoods']{background:#f4fbdc!important}
}

/* =========================================================
   V31.15 — CHAT SEM AUTO-SCROLL + PDF LIVRE + MÍDIAS REAIS
   ========================================================= */
/* Sidebar: sem citação sobre a foto e retrato completo/melhor enquadrado. */
.side-candidate{min-height:330px!important;align-items:flex-end!important;padding:10px 12px 0 0!important;overflow:hidden!important}
.side-candidate>img{width:205px!important;height:320px!important;object-fit:contain!important;object-position:left bottom!important;filter:drop-shadow(0 14px 22px rgba(0,0,0,.18))!important}
.side-candidate-copy{padding:0 0 54px 2px!important}
.campaign-sidebar blockquote{display:none!important}
.sidebar-nav{padding-top:2px!important}

/* Composer sem botão de localização visível. */
.composer{grid-template-columns:minmax(0,1fr) 48px!important;padding-left:12px!important}
.composer textarea{grid-column:1!important;width:100%!important}
.send{grid-column:2!important}
.chat-location-btn,.chat-modal-location,.desktop-neighborhood-trigger,.pin{display:none!important}

/* Material direto no fluxo do chat: sem cartão/container visual extra. */
.document-row{overflow:visible!important;max-height:none!important}
.document-row .document-stack{overflow:visible!important;max-height:none!important}
.material-inline-wrap,.material-inline-pages{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;max-height:none!important;height:auto!important}
.material-inline-pages{display:grid!important;gap:8px!important}
.material-inline-page{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;overflow:visible!important;cursor:zoom-in!important;transform:none!important}
.material-inline-page:hover{box-shadow:none!important;transform:none!important}
.material-inline-page img,.material-inline-page canvas{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.material-inline-actions{position:static!important;margin-top:10px!important;transform:none!important}
.material-inline-actions a,.material-inline-actions button{transform:none!important;background-image:none!important}

/* Glow contínuo e sinalização clara do download. */
@keyframes downloadClickGlowV315{0%,100%{box-shadow:0 0 0 0 rgba(184,242,10,.08),0 8px 20px rgba(8,121,84,.18)}50%{box-shadow:0 0 0 9px rgba(184,242,10,.22),0 0 30px rgba(184,242,10,.50),0 12px 26px rgba(8,121,84,.22)}}
.material-inline-actions .material-download.download-ready{position:relative!important;animation:downloadClickGlowV315 1.15s ease-in-out infinite!important;border-color:#B8F20A!important;overflow:visible!important}
.material-inline-actions .material-download.download-ready:after{content:"CLIQUE PARA BAIXAR";position:absolute;right:8px;top:-10px;background:#B8F20A;color:#062F28;border-radius:999px;padding:3px 7px;font-size:7.5px;font-weight:800;letter-spacing:.05em;box-shadow:0 4px 10px rgba(91,122,0,.18)}

/* Tela cheia: o ÚNICO scroll é a área das páginas; wheel/touch permanecem livres. */
.material-viewer{overflow:hidden!important;touch-action:auto!important}
.material-viewer-card{display:flex!important;flex-direction:column!important;width:100vw!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;touch-action:auto!important}
.material-viewer-top{flex:0 0 68px!important;position:relative!important}
.material-viewer-pages{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y pinch-zoom!important;overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch!important;scroll-behavior:auto!important;pointer-events:auto!important;padding-bottom:32px!important}
.material-viewer-pages img,.material-viewer-pdf-page,.material-viewer-pdf-page canvas{pointer-events:auto!important;touch-action:pan-y pinch-zoom!important}

/* Bairros e regiões: botões mais claros, especialmente no mobile. */
.neighborhood-directory section{margin-top:13px!important}.neighborhood-directory section h4{margin:0 0 8px;color:#45685f;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.neighborhood-chip-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.neighborhood-chip-grid>button{min-height:62px!important;padding:8px 9px!important;border:1px solid #dce8e3!important;border-radius:13px!important;background:#fff!important;color:#07392f!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) 16px!important;align-items:center!important;gap:8px!important;text-align:left!important;box-shadow:0 5px 14px rgba(5,71,55,.05)!important}
.neighborhood-chip-grid>button:hover{border-color:#B8F20A!important;background:#faffec!important}
.chip-home{width:34px;height:34px;border-radius:10px;background:#edf7f2;display:grid;place-items:center}.chip-home img{width:18px;height:18px;filter:invert(26%) sepia(28%) saturate(1165%) hue-rotate(113deg)}
.chip-copy{min-width:0}.chip-copy strong{display:block;font-size:11px;font-weight:700;white-space:normal;line-height:1.2}.chip-copy small{display:block;font-size:9px;color:#7a8e87;margin-top:3px}.chip-arrow{width:16px;height:16px;opacity:.55}
.list-search-open{display:inline-flex!important;align-items:center!important;gap:6px!important}.list-search-open img{width:15px;height:15px}

/* Menu dos três pontos mais limpo e com ícones. */
.mobile-more-menu{padding:9px!important;border-radius:16px!important;border:1px solid #dce8e3!important;box-shadow:0 18px 46px rgba(6,47,40,.20)!important;overflow:hidden!important}
.mobile-more-title{padding:9px 10px 10px;border-bottom:1px solid #edf2f0;margin-bottom:4px}.mobile-more-title small{display:block;color:#789087;font-size:8px;letter-spacing:.16em;font-weight:700}.mobile-more-title strong{display:block;color:#062F28;font-size:12px;margin-top:2px}
.mobile-more-menu a,.mobile-more-menu button{min-height:46px!important;display:grid!important;grid-template-columns:30px 1fr!important;align-items:center!important;gap:8px!important;border-radius:10px!important;padding:0 9px!important;font-weight:600!important;color:#143e35!important}
.mobile-more-menu a img,.mobile-more-menu button img{width:19px;height:19px;filter:invert(25%) sepia(28%) saturate(1080%) hue-rotate(111deg)}
.mobile-more-menu a:hover,.mobile-more-menu button:hover{background:#f1f8f4!important}

@media(max-width:900px){
 .side-candidate{min-height:0!important}
 .composer{grid-template-columns:minmax(0,1fr) 44px!important;padding-left:10px!important}
 .material-viewer-top{flex-basis:64px!important}
 .material-viewer-pages{height:calc(100dvh - 64px)!important;max-height:calc(100dvh - 64px)!important;overflow-y:auto!important;padding:6px 6px calc(30px + env(safe-area-inset-bottom))!important}
 .neighborhood-chip-grid{grid-template-columns:1fr!important;gap:7px!important}
 .neighborhood-chip-grid>button{min-height:58px!important}
 .material-inline-actions .material-download.download-ready:after{right:3px;top:-9px;font-size:6.8px;padding:3px 5px}
}


/* V31.16 — CORREÇÃO DO INPUT DO CHAT */
.composer{grid-template-columns:minmax(0,1fr) 48px!important;column-gap:6px!important}
.composer textarea{grid-column:1!important;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;max-height:40px!important;line-height:20px!important;padding:10px 8px!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
.composer .send{grid-column:2!important;justify-self:end!important}
@media(max-width:900px){
 .composer{grid-template-columns:minmax(0,1fr) 44px!important;column-gap:5px!important}
 .composer textarea{font-size:15px!important;padding:10px 9px!important}
}


/* V31.17 — PATCH ÚNICO: INPUT + LOCALIZAÇÃO INICIAL + GALERIA NO CHAT */
.composer{display:flex!important;align-items:center!important;grid-template-columns:none!important;gap:6px!important;padding:5px 7px 5px 12px!important}
.composer textarea{display:block!important;flex:1 1 auto!important;grid-column:auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:40px!important;min-height:40px!important;max-height:40px!important;line-height:20px!important;padding:10px 8px!important;overflow:hidden!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
.composer .send{flex:0 0 44px!important;grid-column:auto!important;margin-left:auto!important}.welcome-location-action{margin-top:8px}.welcome-location-action button{display:inline-flex;align-items:center;gap:8px;min-height:42px;border:1px solid #a8dc09;border-radius:12px;background:#b8f20a;color:#063d31;padding:9px 13px;font-weight:600;cursor:pointer}.welcome-location-action img{width:19px;height:19px;filter:invert(19%) sepia(17%) saturate(1431%) hue-rotate(116deg)}
.neighborhood-photo{display:block;width:100%;padding:0;border:1px solid #dae7e3;border-radius:12px;overflow:hidden;background:#fff;cursor:zoom-in}.neighborhood-photo img{display:block;width:100%;height:auto}.photo-viewer{position:fixed;inset:0;z-index:1300;display:flex;align-items:stretch;justify-content:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease}.photo-viewer.is-open{opacity:1;visibility:visible;pointer-events:auto}.photo-viewer-backdrop{position:absolute;inset:0;background:rgba(1,24,20,.88);backdrop-filter:blur(6px)}.photo-viewer-card{position:relative;z-index:2;width:100vw;height:100dvh;display:flex;flex-direction:column;background:#071e1a}.photo-viewer-top{height:68px;flex:0 0 68px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#064f43;color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}.photo-viewer-top small{display:block;font-size:9px;letter-spacing:.16em;color:#b8f20a}.photo-viewer-top strong{display:block;margin-top:3px;font-size:14px;font-weight:600}.photo-viewer-close{height:42px;border:1px solid rgba(255,255,255,.24);border-radius:11px;background:#fff;color:#064f43;padding:0 13px;display:flex;align-items:center;gap:7px;cursor:pointer}.photo-viewer-close img{width:19px;height:19px}.photo-viewer-stage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:18px 78px 46px}.photo-viewer-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.photo-viewer-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.94);display:grid;place-items:center;cursor:pointer}.photo-viewer-nav img{width:23px;height:23px}.photo-viewer-prev{left:18px}.photo-viewer-next{right:18px}.photo-viewer-counter{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);background:rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:6px 11px;font-size:11px}
@media(max-width:900px){.composer{gap:5px!important;padding-left:10px!important}.composer .send{flex-basis:40px!important}.welcome-location-action button{width:100%;justify-content:center}.photo-viewer-top{height:62px;flex-basis:62px;padding:0 10px}.photo-viewer-close{height:40px;padding:0 10px}.photo-viewer-close span{display:none}.photo-viewer-stage{padding:8px 4px 42px}.photo-viewer-nav{width:42px;height:42px;background:rgba(255,255,255,.90)}.photo-viewer-prev{left:8px}.photo-viewer-next{right:8px}.photo-viewer-image{max-height:calc(100dvh - 118px)}}


/* V31.19 — santinho desktop + galeria clean */
.sidebar-santinho{position:absolute;right:14px;bottom:18px;z-index:7;width:142px;aspect-ratio:2/3;border-radius:16px;overflow:hidden;background:#fff;border:2px solid rgba(255,255,255,.88);box-shadow:0 16px 35px rgba(0,0,0,.24)}
.sidebar-santinho img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
@media(max-width:900px){.sidebar-santinho{display:none!important}}
.neighborhood-media-gallery{width:min(900px,76vw)!important;background:#fff;border:1px solid #dce8e4;border-radius:18px!important;padding:10px!important;display:block!important;box-shadow:0 12px 30px rgba(6,79,67,.07)}
.neighborhood-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 10px;color:#143f36}.neighborhood-gallery-head span{font-size:12px;font-weight:700}.neighborhood-gallery-head small{font-size:10px;color:#71877f}
.neighborhood-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.neighborhood-photo{position:relative;min-width:0;aspect-ratio:4/3;border:0!important;border-radius:12px!important;overflow:hidden;background:#eef4f2!important;cursor:zoom-in;padding:0!important;box-shadow:none!important}.neighborhood-photo.is-featured{grid-column:span 2;grid-row:span 2;aspect-ratio:auto;min-height:310px}.neighborhood-photo img{width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .2s ease}.neighborhood-photo:hover img{transform:scale(1.015)}.neighborhood-photo>span{position:absolute;right:8px;bottom:8px;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:rgba(3,36,27,.76);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700;backdrop-filter:blur(5px)}
.photo-viewer{background:rgba(2,24,19,.72)!important}.photo-viewer-backdrop{background:rgba(1,20,16,.86)!important;backdrop-filter:blur(10px)!important}.photo-viewer-card{width:min(1240px,calc(100vw - 42px))!important;height:min(900px,calc(100dvh - 32px))!important;margin:auto!important;border-radius:22px!important;background:#0d211d!important;overflow:hidden!important;box-shadow:0 32px 90px rgba(0,0,0,.42)!important}.photo-viewer-top{height:66px!important;flex-basis:66px!important;padding:0 16px 0 20px!important;background:#fff!important;color:#113c32!important;border-bottom:1px solid #e0e9e6!important}.photo-viewer-heading small{color:#0a8057!important;font-weight:700}.photo-viewer-heading strong{font-size:14px!important;font-weight:700!important;color:#123e34!important}.photo-viewer-counter{position:static!important;transform:none!important;background:#eef6f2!important;color:#215347!important;padding:7px 11px!important;font-weight:700!important;margin-left:auto;margin-right:10px}.photo-viewer-close{background:#064f43!important;color:#fff!important;border:0!important;font-weight:700!important}.photo-viewer-close img{filter:brightness(0) invert(1)!important}.photo-viewer-stage{background:#0b1c18!important;padding:18px 74px!important;min-height:0!important}.photo-viewer-image-shell{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.photo-viewer-image{max-width:100%!important;max-height:100%!important;object-fit:contain!important;border-radius:10px;box-shadow:0 10px 34px rgba(0,0,0,.24)}.photo-viewer-nav{width:48px!important;height:48px!important;background:#fff!important;border:0!important;box-shadow:0 8px 24px rgba(0,0,0,.22)!important}.photo-viewer-prev{left:14px!important}.photo-viewer-next{right:14px!important}.photo-viewer-thumbs{height:86px;flex:0 0 86px;display:flex;align-items:center;gap:8px;overflow-x:auto;padding:10px 14px;background:#fff;border-top:1px solid #e0e9e6;scrollbar-width:thin}.photo-viewer-thumbs button{flex:0 0 70px;height:62px;border:2px solid transparent;border-radius:10px;padding:0;overflow:hidden;background:#eaf1ee;cursor:pointer;opacity:.72}.photo-viewer-thumbs button.is-active{border-color:#087954;opacity:1}.photo-viewer-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:900px){.neighborhood-media-gallery{width:calc(100vw - 58px)!important;padding:8px!important;border-radius:15px!important}.neighborhood-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.neighborhood-photo.is-featured{grid-column:1/-1;grid-row:auto;min-height:220px}.photo-viewer-card{width:100vw!important;height:100dvh!important;border-radius:0!important}.photo-viewer-top{height:60px!important;flex-basis:60px!important;padding:0 10px 0 13px!important}.photo-viewer-stage{padding:8px 4px!important}.photo-viewer-nav{width:42px!important;height:42px!important;background:rgba(255,255,255,.92)!important}.photo-viewer-prev{left:7px!important}.photo-viewer-next{right:7px!important}.photo-viewer-image{max-height:100%!important;border-radius:4px}.photo-viewer-thumbs{height:76px;flex-basis:76px;padding:8px}.photo-viewer-thumbs button{flex-basis:60px;height:54px}.photo-viewer-counter{font-size:10px!important;padding:6px 8px!important;margin-right:6px}.photo-viewer-close{width:40px!important;padding:0!important;justify-content:center!important}}

/* V31.20 — santinho no topo da sidebar desktop; remove rodape visual antigo */
.sidebar-santinho-top{flex:0 0 auto;width:100%;background:#fff;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.16)}
.sidebar-santinho-top img{display:block;width:100%;height:auto;max-height:485px;object-fit:contain;background:#fff}
.campaign-sidebar .sidebar-nav{padding-top:6px!important;position:relative!important;z-index:8!important}
.campaign-sidebar .sidebar-city,.campaign-sidebar .sidebar-santinho{display:none!important}
@media(min-width:901px){.campaign-sidebar{overflow-y:auto!important;scrollbar-width:none}.campaign-sidebar::-webkit-scrollbar{display:none}.sidebar-santinho-top{display:block}}
@media(max-width:900px){.sidebar-santinho-top{display:none!important}}


/* === V31.21 CHAT — layout fiel ao mockup aprovado === */
:root{--mock-bg:#ebebeb;--mock-white:#fff;--mock-blue:#0d2f78;--mock-green:#00674e;--mock-green2:#087c5d;--mock-line:#e2e8ef;--mock-bubble:#f1f6fc}
html,body{background:var(--mock-bg)!important;color:var(--mock-blue)!important}.chat-app{grid-template-columns:360px minmax(0,1fr)!important;gap:18px!important;padding:18px!important;background:var(--mock-bg)!important}.campaign-sidebar{height:calc(100dvh - 36px)!important;background:transparent!important;border:0!important;overflow-y:auto!important;gap:14px!important}.sidebar-santinho-card{background:#fff;border:1px solid #e0e7eb;border-radius:20px;overflow:hidden;box-shadow:0 10px 30px rgba(27,56,79,.07);flex:0 0 auto}.sidebar-santinho-card img{display:block;width:100%;height:auto;object-fit:contain;background:#fff}.quick-options-card{background:#fff;border:1px solid #e0e7eb;border-radius:20px;padding:17px 14px 14px;box-shadow:0 10px 30px rgba(27,56,79,.07)}.quick-options-card h2{margin:0 5px 13px;color:#087154;font-size:20px}.sidebar-nav{padding:0!important;gap:8px!important}.sidebar-nav a,.sidebar-nav button{height:58px!important;min-height:58px!important;background:#fff!important;color:#15356e!important;border:1px solid #dfe6ee!important;border-radius:14px!important;padding:0 13px!important;display:grid!important;grid-template-columns:42px 1fr 22px!important;gap:10px!important;font-size:15px!important;font-weight:500!important;box-shadow:0 3px 9px rgba(13,47,120,.025)}.sidebar-nav a:hover,.sidebar-nav button:hover{border-color:#aacbc0!important;background:#f8fbfa!important;transform:translateY(-1px)}.sidebar-nav img{filter:none!important}.sidebar-nav .quick-icon{width:42px;height:42px;display:grid;place-items:center}.sidebar-nav .quick-icon img{width:29px!important;height:29px!important;filter:invert(33%) sepia(31%) saturate(1123%) hue-rotate(112deg) brightness(82%)!important}.sidebar-nav .quick-arrow{width:22px!important;height:22px!important;justify-self:end;filter:invert(20%) sepia(35%) saturate(2150%) hue-rotate(193deg) brightness(87%)!important}.chat-panel{height:calc(100dvh - 36px)!important;background:#fff!important;border:1px solid #dfe6eb!important;border-radius:22px!important;box-shadow:0 12px 38px rgba(31,60,83,.08)!important;overflow:hidden!important}.desktop-topbar{position:absolute!important;height:84px!important;left:0!important;right:0!important;top:0!important;border:0!important;border-bottom:1px solid #edf1f4!important;background:#fff!important;padding:0 22px!important;justify-content:flex-start!important;gap:16px!important}.chat-back{width:48px;height:48px;border-radius:15px;border:1px solid #dfe6ee;display:grid;place-items:center;background:#fff}.chat-back img{width:25px;filter:invert(20%) sepia(37%) saturate(2142%) hue-rotate(193deg) brightness(83%)}.chat-heading{display:flex;flex-direction:column;line-height:1.12;min-width:0}.chat-heading strong{font-size:24px;color:#10347b}.chat-heading span{font-size:14px;color:#47659a;margin-top:5px}.chat-online{margin-left:auto;min-width:180px;height:54px;border:1px solid #e2e8ef;border-radius:15px;display:flex;align-items:center;gap:12px;padding:0 15px;background:#fff}.chat-online i{width:14px;height:14px;border-radius:50%;background:#08c957;box-shadow:0 0 0 5px rgba(8,201,87,.08)}.chat-online strong,.chat-online span{display:block}.chat-online strong{font-size:14px;color:#18356f}.chat-online span{font-size:12px;color:#7183a6;margin-top:3px}.chat-more{width:52px;height:52px;border-radius:15px;border:1px solid #e2e8ef;background:#fff;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px}.chat-more span{width:4px;height:4px;background:#153777;border-radius:50%}.mobile-chat-header{display:none!important}.messages{height:100%!important;padding:106px 28px 118px!important;background:#fff!important}.row{margin:15px 0!important;gap:11px!important}.row.user{padding-left:25%!important}.mini{width:46px!important;height:46px!important}.message-stack{max-width:min(690px,74vw)!important}.bubble{background:var(--mock-bubble)!important;color:#153777!important;border:0!important;border-radius:15px!important;box-shadow:none!important;padding:13px 18px!important;font-size:16px!important;line-height:1.36!important}.bubble time{color:#8aa0c2!important}.row.user .bubble{background:linear-gradient(135deg,#087b5d,#005b46)!important;color:#fff!important;min-width:210px!important;padding:15px 20px!important;border-radius:15px!important}.row.user .bubble time{color:#d8ebe4!important}.welcome-bubble{max-width:650px!important}.composer-zone{position:absolute!important;left:16px!important;right:16px!important;bottom:14px!important;padding:0!important;background:transparent!important;border:0!important}.composer{height:68px!important;background:#fff!important;border:1px solid #dfe6ed!important;border-radius:16px!important;padding:7px 8px!important;box-shadow:0 9px 26px rgba(17,47,77,.08)!important;display:flex!important;align-items:center!important;gap:8px!important}.composer textarea{height:48px!important;min-height:48px!important;max-height:48px!important;padding:13px 14px!important;border:1px solid #dfe6ee!important;border-radius:13px!important;background:#fff!important;color:#18356f!important;resize:none!important}.composer textarea:focus{border-color:#9fb9dd!important;box-shadow:0 0 0 3px rgba(21,55,119,.06)!important}.composer-tool,.composer-emoji{width:48px;height:48px;flex:0 0 48px;border-radius:13px;border:1px solid #dfe6ee;background:#fff;color:#14397f;display:grid;place-items:center}.composer-tool img{width:25px;filter:invert(20%) sepia(49%) saturate(2025%) hue-rotate(194deg) brightness(82%)}.composer-emoji{font-size:24px}.send{width:52px!important;height:52px!important;flex:0 0 52px!important;border-radius:14px!important;background:linear-gradient(135deg,#07825f,#00593f)!important}.send img{width:25px!important;filter:brightness(0) invert(1)!important}.material-result-card{margin:4px 0 10px 57px;width:min(680px,calc(100% - 80px));background:#fff;border:1px solid #e1e7ec;border-radius:15px;box-shadow:0 7px 20px rgba(23,52,78,.07);overflow:hidden}.material-result-main{display:grid;grid-template-columns:280px 1fr;min-height:145px}.material-result-image{background:#edf3f5;overflow:hidden}.material-result-image img{width:100%;height:100%;min-height:145px;object-fit:cover}.material-result-copy{padding:18px 20px;display:flex;flex-direction:column;justify-content:center}.material-result-copy small{font-size:11px;color:#087553;font-weight:800;letter-spacing:.08em}.material-result-copy strong{font-size:24px;color:#113479;line-height:1.05;margin-top:5px}.material-result-copy p{margin:8px 0 0;font-size:15px;color:#49618e}.material-result-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:9px;border-top:1px solid #e8edf1}.material-result-buttons button,.material-result-buttons a{height:48px;border:1px solid #dfe6ed;background:#fff;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:8px;color:#153777;text-decoration:none;font-weight:600;cursor:pointer}.material-result-buttons img{width:23px;filter:invert(31%) sepia(28%) saturate(1104%) hue-rotate(112deg) brightness(83%)}.material-inline-wrap{margin-top:8px!important;border-radius:14px!important;overflow:hidden!important;border:1px solid #e0e6eb!important;background:#f7f9fb!important}.material-inline-pages{max-height:none!important;overflow:visible!important}.material-inline-page{background:#fff!important;margin:0 0 12px!important;box-shadow:0 4px 14px rgba(0,0,0,.05)!important}.document-row{align-items:flex-start!important}.document-stack{width:min(850px,83vw)!important;max-width:min(850px,83vw)!important}.mobile-more-menu{top:72px!important;right:16px!important}.chat-list-card{margin-left:57px!important;background:#fff!important;border-color:#e1e7ec!important;box-shadow:0 7px 20px rgba(23,52,78,.07)!important}
@media(max-width:980px){.chat-app{grid-template-columns:286px minmax(0,1fr)!important;gap:12px!important;padding:12px!important}.chat-panel,.campaign-sidebar{height:calc(100dvh - 24px)!important}.sidebar-santinho-card img{height:auto}.material-result-main{grid-template-columns:210px 1fr}.chat-online{min-width:150px}.chat-heading strong{font-size:20px}}
@media(max-width:760px){.chat-app{display:block!important;padding:0!important}.campaign-sidebar{display:none!important}.chat-panel{height:100dvh!important;border:0!important;border-radius:0!important}.desktop-topbar{height:72px!important;padding:0 12px!important;gap:10px!important}.chat-heading strong{font-size:18px}.chat-heading span{font-size:11px}.chat-online{display:none!important}.chat-more{width:44px;height:44px;margin-left:auto}.chat-back{width:44px;height:44px}.messages{padding:88px 11px 98px!important}.message-stack{max-width:82vw!important}.row.user{padding-left:18%!important}.bubble{font-size:14px!important;padding:11px 13px!important}.mini{width:38px!important;height:38px!important}.composer-zone{left:8px!important;right:8px!important;bottom:7px!important}.composer{height:64px!important}.composer-tool{display:none!important}.composer-emoji{width:42px;height:44px;flex-basis:42px}.send{width:46px!important;height:46px!important;flex-basis:46px!important}.material-result-card{margin-left:49px;width:calc(100% - 49px)}.material-result-main{grid-template-columns:1fr}.material-result-image img{height:150px;min-height:150px}.material-result-copy{padding:13px 14px}.material-result-copy strong{font-size:20px}.material-result-buttons{grid-template-columns:1fr}.document-stack{width:calc(100vw - 62px)!important;max-width:calc(100vw - 62px)!important}.chat-list-card{margin-left:49px!important}.mobile-more-menu{top:62px!important;right:8px!important}}


/* === V31.22 CHAT refinements === */
.row.user .bubble{background:#08795b!important;background-image:none!important;color:#fff!important}.send{background:#08795b!important;background-image:none!important}.quick-primary,.suggestion-confirm .yes{background:#08795b!important;background-image:none!important}.material-result-card,.material-inline-wrap,.chat-list-card{background:#fff!important;background-image:none!important}.seen-check{display:inline-block;margin-left:6px;color:#b8f20a;font-weight:900;letter-spacing:-2px;font-size:12px}.material-result-image{display:grid!important;place-items:center!important;background:#f1f4f3!important;overflow:hidden!important}.material-result-image img,.material-thumb-canvas{max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important}.material-thumb-loading{display:grid;place-items:center;min-height:120px;color:#6d7f7a;font-size:12px;font-weight:800}.material-result-main{grid-template-columns:minmax(240px,300px) 1fr!important}.material-result-buttons{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}.material-result-buttons button,.material-result-buttons a{border-radius:12px!important;font-weight:700!important;transition:.18s}.material-result-buttons button:hover,.material-result-buttons a:hover{border-color:#8bbfaf!important;background:#f5faf8!important}.download-pdf{background:#075f50!important;color:#fff!important;border-color:#075f50!important}.download-pdf img{filter:brightness(0) invert(1)!important}.materials-directory{width:min(820px,calc(100% - 80px))!important}.material-download-list{display:grid;gap:8px}.material-download-list article{display:grid!important;grid-template-columns:78px 1fr auto!important;align-items:center!important;gap:12px!important;border:1px solid #dfe8e5!important;border-radius:14px!important;padding:8px!important;background:#fff!important}.material-dir-preview{width:78px;height:68px;border-radius:10px;overflow:hidden;background:#edf4f1;display:grid;place-items:center;color:#08795b;font-weight:900}.material-dir-preview img,.material-dir-preview canvas{width:100%!important;height:100%!important;object-fit:cover!important}.material-dir-copy strong,.material-dir-copy small{display:block}.material-dir-copy strong{font-size:14px;color:#143776}.material-dir-copy small{font-size:11px;color:#778a86;margin-top:3px}.material-download-list article>a{display:flex!important;align-items:center!important;gap:7px!important;padding:10px 13px!important;border-radius:11px!important;background:#08795b!important;color:#fff!important;text-decoration:none!important;font-weight:700!important;font-size:12px!important}.material-download-list article>a img{width:18px!important;filter:brightness(0) invert(1)!important}.materials-more{width:100%;margin-top:10px;border:1px solid #cfded9;background:#f8fbfa;color:#075f50;border-radius:12px;padding:12px;font-weight:800}.bio-card{width:min(820px,calc(100% - 80px))!important}.bio-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}.bio-columns section{border:1px solid #e1e8e6;border-radius:14px;padding:15px;background:#fbfdfc}.bio-columns h4{margin:0 0 9px;color:#075f50;font-size:16px}.bio-columns ul{margin:0;padding-left:18px;color:#35556d}.bio-columns li{margin:6px 0;line-height:1.35;font-size:13px}.neighborhood-directory section{border:1px solid #e2e9e7;border-radius:14px;padding:12px;margin-top:9px;background:#fff}.neighborhood-directory section h4{margin:0 0 8px;color:#075f50}.neighborhood-chip-grid button{border-radius:12px!important;background:#f8fbfa!important;border-color:#dce6e2!important}.material-viewer-card{display:flex!important;flex-direction:column!important;min-height:0!important}.material-viewer-pages{overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior:contain!important}.material-viewer-pdf-page{flex:0 0 auto!important}.material-inline-pages{overflow:visible!important;max-height:none!important}.material-inline-actions{position:sticky!important;bottom:0!important;background:#fff!important;border-top:1px solid #e3e9e7!important;z-index:3!important}.chat-panel,.messages{background:#fff!important;background-image:none!important}
@media(max-width:767px){.material-result-card{margin-left:0!important;width:100%!important}.material-result-main{grid-template-columns:120px 1fr!important}.material-result-image{min-height:150px!important}.material-result-copy{padding:13px!important}.material-result-copy strong{font-size:18px!important}.materials-directory,.bio-card{margin-left:0!important;width:100%!important}.material-download-list article{grid-template-columns:62px 1fr!important}.material-download-list article>a{grid-column:1/-1!important;justify-content:center!important}.material-dir-preview{width:62px;height:58px}.bio-columns{grid-template-columns:1fr}.material-viewer{align-items:stretch!important}.material-viewer-card{height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.material-viewer-top{flex:0 0 auto!important}.material-viewer-pages{flex:1 1 auto!important;height:auto!important;max-height:none!important;padding-bottom:90px!important}.material-viewer-pages canvas,.material-viewer-pages img{max-width:100%!important;height:auto!important}}
/* V31.22.1 — nenhum gradiente no conteúdo do chat */
.pdf-full-card.v314 .pdf-toolbar,.pdf-toolbar{background:#0b5550!important;background-image:none!important}

/* =========================================================
   V31.24 — BALÕES / COMPOSER / BOTÕES SEM GRADIENTE
   ========================================================= */
.row.user .bubble{background:#E2FFC7!important;background-image:none!important;color:#191E28!important;border:1px solid #c7e9ab!important;box-shadow:0 8px 22px rgba(64,113,31,.08)!important}
.row.user .bubble p,.row.user .bubble time{color:#191E28!important}.row.user .bubble .seen-check{color:#4f8f18!important}
.quick-primary,.suggestion-confirm .yes,.send,.download-pdf,.material-inline-actions .material-download{background:#062F28!important;background-image:none!important;border-color:#062F28!important;color:#fff!important}
.quick-primary:hover,.suggestion-confirm .yes:hover,.send:hover,.download-pdf:hover{background:#0a473d!important;background-image:none!important}
.quick-secondary,.quick-suggest,.material-result-buttons button,.material-result-buttons a,.materials-more{background-image:none!important}
.chat-panel,.messages,.material-result-card,.material-inline-wrap,.chat-list-card{background-image:none!important}
.composer-zone{left:0!important;right:0!important;bottom:0!important;padding:0!important;margin:0!important}.composer{border-radius:18px 18px 0 0!important;margin:0!important;box-shadow:0 -8px 26px rgba(18,51,73,.06)!important}.chat-panel{padding-bottom:0!important}
.name-consent{display:flex!important;gap:9px!important;flex-wrap:wrap!important}
.name-consent button{min-height:44px!important;padding:0 17px!important;border-radius:12px!important;font-weight:800!important}
@media(max-width:760px){.composer-zone{left:0!important;right:0!important;bottom:0!important}.composer{border-radius:16px 16px 0 0!important}.messages{padding-bottom:84px!important}.name-consent{margin-left:0!important}.name-consent button{flex:1 1 140px!important}}


/* V31.25 — correção visual do balão do lead e previews do PDF */
.messages .row.user .message-stack .bubble,
.messages .row.user .bubble{
  background:#E2FFC7!important;
  background-image:none!important;
  color:#191e28!important;
  border:1px solid #c7e6ad!important;
  box-shadow:0 7px 20px rgba(64,113,31,.08)!important;
}
.messages .row.user .message-stack .bubble p,
.messages .row.user .message-stack .bubble strong,
.messages .row.user .message-stack .bubble time{
  color:#191e28!important;
}
.messages .row.user .seen-check{color:#527c20!important;}
.material-result-image{
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.material-result-image img,
.material-result-image canvas,
.material-thumb-canvas{
  border-radius:16px!important;
  overflow:hidden!important;
}
.material-inline-page,
.material-viewer-pdf-page{
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(17,54,46,.08)!important;
}
.material-inline-page canvas,
.material-inline-page img,
.material-viewer-pdf-page canvas,
.material-viewer-pdf-page img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  border-radius:18px!important;
}
@media(max-width:767px){
 .material-inline-page,.material-viewer-pdf-page{border-radius:14px!important}
 .material-inline-page canvas,.material-inline-page img,.material-viewer-pdf-page canvas,.material-viewer-pdf-page img{border-radius:14px!important}
}


/* =========================================================
   V31.26 — chat: PDF, fotos, balões e acabamento
   ========================================================= */
:root{--user:#E2FFC7!important}
.row.user .bubble{background:#E2FFC7!important;color:#191E28!important;border:1px solid #cfe8b9!important;box-shadow:0 8px 20px rgba(52,94,27,.08)!important}
.row.user .bubble p{color:#191E28!important}.row.user .bubble time,.row.user .seen-check{color:#4c6a41!important}
.quick-primary,.suggestion-confirm .yes,.send,.view-pdf,.download-pdf,.material-fullscreen{background:#062F28!important;background-image:none!important;color:#fff!important;border-color:#062F28!important}
.quick-secondary,.view-photos{background:#fff!important;background-image:none!important;color:#062F28!important}

/* Card do material: preview maior preenchendo a área, sem cortar o PDF */
.material-result-card{width:min(1020px,calc(100% - 58px))!important;border-radius:24px!important;overflow:hidden!important;background:#fff!important;border:1px solid #dce5e2!important;box-shadow:0 16px 38px rgba(11,45,35,.08)!important}
.material-result-main{display:grid!important;grid-template-columns:minmax(470px,1.25fr) minmax(280px,.75fr)!important;align-items:stretch!important;background:#fff!important}
.material-result-image{min-height:500px!important;padding:14px!important;background:#f1f4f3!important;display:grid!important;place-items:center!important;border-radius:22px 0 0 0!important;overflow:hidden!important}
.material-result-image img,.material-result-image canvas,.material-thumb-canvas{display:block!important;width:100%!important;height:auto!important;max-height:620px!important;object-fit:contain!important;border-radius:18px!important;background:#fff!important;box-shadow:0 4px 16px rgba(0,0,0,.04)!important}
.material-result-copy{padding:28px 28px!important;align-self:center!important}
.material-result-copy strong{font-size:28px!important;line-height:1.06!important}
.material-result-buttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:12px!important;background:#fff!important;border-top:1px solid #e4ebe8!important}
.material-result-buttons button,.material-result-buttons a{min-height:52px!important;border-radius:14px!important;font-weight:800!important;text-decoration:none!important}

/* PDF apresentado no chat: páginas grandes e arredondadas */
.material-inline-wrap{border-radius:22px!important;overflow:visible!important;background:#eef2f0!important;padding:12px!important}
.material-inline-pages{display:grid!important;gap:18px!important;background:#eef2f0!important;border-radius:20px!important;padding:4px!important}
.material-inline-page{background:#fff!important;border-radius:20px!important;overflow:hidden!important;box-shadow:0 10px 28px rgba(8,43,34,.08)!important;margin:0!important}
.material-inline-page canvas,.material-inline-page img{display:block!important;width:100%!important;height:auto!important;border-radius:20px!important}
.material-viewer-pages{background:#e9eeec!important;padding:18px!important}
.material-viewer-pdf-page{border-radius:22px!important;overflow:hidden!important;background:#fff!important;margin:0 auto 18px!important;box-shadow:0 12px 36px rgba(0,0,0,.12)!important}
.material-viewer-pdf-page canvas,.material-viewer-pdf-page img{display:block!important;width:100%!important;height:auto!important;border-radius:22px!important}

/* Fotos: fundo branco/cinza, cards maiores e bordas arredondadas */
.neighborhood-media-gallery,.photo-viewer-card,.photo-viewer-stage{background:#f5f7f6!important}
.neighborhood-gallery-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.neighborhood-photo{background:#fff!important;border:1px solid #dfe7e4!important;border-radius:18px!important;overflow:hidden!important;min-height:190px!important;box-shadow:0 8px 22px rgba(6,47,40,.06)!important}
.neighborhood-photo img{width:100%!important;height:100%!important;min-height:190px!important;object-fit:cover!important;border-radius:18px!important}
.photo-viewer-image-shell{background:#fff!important;border-radius:20px!important;overflow:hidden!important}.photo-viewer-image{border-radius:20px!important}

/* Escolha de bairro para "ver fotos" */
.photo-neighborhood-picker{background:#fff!important;border:1px solid #dfe7e4!important;border-radius:20px!important;padding:16px!important}
.photo-neighborhood-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.photo-neighborhood-grid button{display:grid;grid-template-rows:150px auto auto;gap:5px;text-align:left;background:#fff;border:1px solid #dfe7e4;border-radius:17px;padding:8px;color:#062F28;cursor:pointer;overflow:hidden;box-shadow:0 8px 20px rgba(6,47,40,.05)}
.photo-neighborhood-grid button:hover{border-color:#82b5a7;transform:translateY(-1px)}
.photo-neighborhood-grid img,.photo-picker-placeholder{width:100%;height:150px;object-fit:cover;border-radius:12px;background:#eef2f0;display:grid;place-items:center}
.photo-neighborhood-grid strong{font-size:14px;padding:2px 4px 0}.photo-neighborhood-grid small{color:#74847e;padding:0 4px 5px}

/* Composer colado ao rodapé */
.composer-zone{left:0!important;right:0!important;bottom:0!important;padding:0!important}.composer{border-radius:18px 18px 0 0!important;margin:0!important}.chat-panel{padding-bottom:0!important}

@media(max-width:900px){
 .material-result-card{width:100%!important}.material-result-main{grid-template-columns:1fr!important}.material-result-image{min-height:0!important;padding:10px!important;border-radius:20px 20px 0 0!important}.material-result-image img,.material-result-image canvas{max-height:none!important}
 .material-result-copy{padding:18px!important}.material-result-buttons{grid-template-columns:1fr!important}
 .photo-neighborhood-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.neighborhood-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
 .photo-neighborhood-grid{grid-template-columns:1fr!important}.photo-neighborhood-grid button{grid-template-rows:170px auto auto}.neighborhood-gallery-grid{grid-template-columns:1fr!important}
 .material-inline-wrap{padding:6px!important}.material-viewer-pages{padding:8px!important}.material-inline-page,.material-inline-page canvas,.material-inline-page img,.material-viewer-pdf-page,.material-viewer-pdf-page canvas{border-radius:16px!important}
}

/* ==========================================================
   V31.27 FINAL — PDF sem container interno + controles fixos
   ========================================================== */
:root{--lime:#B8F20A!important;--lime2:#8CBE33!important;--deep:#062F28!important}
/* balão do lead */
.messages .row.user .bubble{background:#E2FFC7!important;background-image:none!important;color:#191E28!important;border:1px solid #c6e5ac!important;box-shadow:0 8px 20px rgba(59,98,34,.08)!important}
.messages .row.user .bubble p,.messages .row.user .bubble strong,.messages .row.user .bubble time{color:#191E28!important}.messages .row.user .seen-check{color:#5e8b23!important}
/* cores dos CTAs */
.quick-primary,.suggestion-confirm .yes,.send,.material-fullscreen,.material-result-buttons .view-pdf,.material-inline-actions .material-fullscreen,.material-viewer-actions button{background:var(--lime2)!important;background-image:none!important;color:var(--deep)!important;border-color:var(--lime2)!important}
.material-result-buttons .download-pdf,.material-inline-actions .material-download,.material-viewer-actions #viewerDownloadMaterial{background:var(--lime)!important;background-image:none!important;color:var(--deep)!important;border-color:#a6dc0b!important}
.material-result-buttons .view-photos,.material-inline-actions a[target],.material-viewer-actions #viewerOpenMaterial{background:#fff!important;background-image:none!important;color:var(--deep)!important;border-color:#cadbd5!important}
.material-result-buttons img,.material-inline-actions img,.material-viewer-actions img{filter:invert(14%) sepia(28%) saturate(730%) hue-rotate(111deg)!important}

/* card de preview: o PDF ocupa a área inteira, sem moldura interna */
.material-result-card{width:min(1120px,calc(100% - 58px))!important;border-radius:24px!important;overflow:hidden!important;background:#fff!important}
.material-result-main{grid-template-columns:minmax(540px,1.35fr) minmax(270px,.65fr)!important;align-items:stretch!important}
.material-result-image{padding:0!important;margin:0!important;min-height:620px!important;background:#fff!important;border-radius:22px 0 0 0!important;overflow:hidden!important;display:block!important}
.material-result-image>img,.material-result-image>canvas,.material-result-image .material-thumb-canvas{display:block!important;width:100%!important;height:100%!important;min-height:620px!important;max-height:none!important;object-fit:contain!important;object-position:center top!important;margin:0!important;padding:0!important;border-radius:22px 0 0 0!important;box-shadow:none!important;background:#fff!important}
.material-result-copy{background:#fff!important}

/* PDF inline: UMA única moldura; páginas encostam nas bordas */
.document-row{width:100%!important}.document-row .document-stack{width:min(1180px,calc(100vw - 410px))!important;max-width:none!important}
.material-inline-wrap{width:100%!important;margin:8px 0 0!important;padding:0!important;border:1px solid #d9e5e0!important;border-radius:24px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 16px 40px rgba(6,47,40,.09)!important;position:relative!important}
.material-inline-pages{display:block!important;width:100%!important;margin:0!important;padding:0!important;gap:0!important;background:#fff!important;border:0!important;border-radius:0!important;overflow:visible!important}
.material-inline-page{display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#fff!important;box-shadow:none!important;transform:none!important}
.material-inline-page canvas,.material-inline-page img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
.material-inline-page:first-child canvas,.material-inline-page:first-child img{border-radius:22px 22px 0 0!important}
.material-inline-pages{padding-bottom:66px!important}
/* fixa no rodapé da área de chat, acima do input */
.material-inline-actions{position:sticky!important;bottom:62px!important;left:0!important;right:0!important;z-index:35!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:9px!important;background:rgba(255,255,255,.97)!important;border-top:1px solid #dce6e2!important;border-radius:0!important;box-shadow:0 -10px 26px rgba(6,47,40,.08)!important;backdrop-filter:blur(9px)!important}
.material-inline-actions a,.material-inline-actions button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:48px!important;border-radius:13px!important;padding:8px 12px!important;font-weight:800!important;text-decoration:none!important;box-shadow:none!important;transform:none!important}

/* tela cheia: topo + páginas roláveis + barra inferior fixa */
.material-viewer{padding:0!important;background:#e9eeec!important}
.material-viewer-backdrop{background:#e9eeec!important;backdrop-filter:none!important}
.material-viewer-card{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border-radius:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:60px minmax(0,1fr) 66px!important;background:#e9eeec!important}
.material-viewer-top{grid-row:1!important;position:relative!important;z-index:5!important}
.material-viewer-pages{grid-row:2!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;padding:18px max(18px,calc((100vw - 1220px)/2)) 24px!important;background:#e9eeec!important;scroll-behavior:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
.material-viewer-pdf-page{display:block!important;width:100%!important;max-width:1220px!important;margin:0 auto 18px!important;padding:0!important;border:0!important;border-radius:24px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 13px 34px rgba(0,0,0,.10)!important}
.material-viewer-pdf-page canvas,.material-viewer-pdf-page img,.material-viewer-pages>img{display:block!important;width:100%!important;height:auto!important;margin:0!important;border-radius:24px!important;background:#fff!important;box-shadow:none!important}
.material-viewer-actions{grid-row:3!important;z-index:8!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;padding:8px max(16px,calc((100vw - 1220px)/2))!important;background:rgba(255,255,255,.98)!important;border-top:1px solid #d5e0dc!important;box-shadow:0 -10px 28px rgba(6,47,40,.09)!important}
.material-viewer-actions a,.material-viewer-actions button{height:49px!important;border-radius:13px!important;border:1px solid #cbdad5!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-decoration:none!important;font-weight:800!important;cursor:pointer!important}.material-viewer-actions img{width:20px!important;height:20px!important}
.material-viewer-card:fullscreen{width:100vw!important;height:100vh!important;background:#e9eeec!important}

/* fotos: sem fundo verde */
.neighborhood-media-gallery,.photo-viewer-card,.photo-viewer-stage,.photo-neighborhood-picker{background:#f4f6f5!important;background-image:none!important}
.neighborhood-photo{background:#fff!important;border-color:#dce5e2!important}

/* composer colado ao rodapé */
.composer-zone{left:0!important;right:0!important;bottom:0!important;margin:0!important;padding:0!important;background:#fff!important}.composer{border-radius:18px 18px 0 0!important;margin:0!important}

@media(max-width:900px){
 .material-result-card{width:100%!important;margin-left:0!important}.material-result-main{grid-template-columns:1fr!important}.material-result-image{min-height:0!important;border-radius:20px 20px 0 0!important}.material-result-image>img,.material-result-image>canvas,.material-result-image .material-thumb-canvas{height:auto!important;min-height:0!important;border-radius:20px 20px 0 0!important}
 .document-row .document-stack{width:calc(100vw - 52px)!important;max-width:none!important}.material-inline-wrap{border-radius:18px!important}.material-inline-page:first-child canvas,.material-inline-page:first-child img{border-radius:17px 17px 0 0!important}.material-inline-actions{bottom:58px!important;padding:6px!important;gap:5px!important}.material-inline-actions a,.material-inline-actions button{min-height:44px!important;font-size:10.5px!important;padding:6px!important}
 .material-viewer-card{grid-template-rows:60px minmax(0,1fr) calc(64px + env(safe-area-inset-bottom))!important}.material-viewer-pages{padding:8px 8px 16px!important}.material-viewer-pdf-page,.material-viewer-pdf-page canvas,.material-viewer-pdf-page img,.material-viewer-pages>img{border-radius:16px!important}.material-viewer-actions{padding:7px 7px calc(7px + env(safe-area-inset-bottom))!important;gap:5px!important}.material-viewer-actions a,.material-viewer-actions button{height:46px!important;font-size:10.5px!important;padding:5px!important}.material-viewer-actions img{width:17px!important;height:17px!important}
}


/* ==========================================================
   V31.28 — chat: preview compacto + hovers claros
   ========================================================== */
.material-result-card{width:min(860px,calc(100% - 58px))!important;max-width:860px!important;border-radius:22px!important;overflow:hidden!important}
.material-result-main{grid-template-columns:minmax(470px,1.15fr) minmax(230px,.62fr)!important;align-items:stretch!important}
.material-result-image{min-height:430px!important;max-height:520px!important;border-radius:22px 0 0 0!important;overflow:hidden!important;background:#fff!important}
.material-result-image>img,.material-result-image>canvas,.material-result-image .material-thumb-canvas{width:100%!important;height:100%!important;min-height:430px!important;max-height:520px!important;object-fit:contain!important;object-position:center top!important;border-radius:22px 0 0 0!important;background:#fff!important}
.material-result-copy{padding:26px 24px!important}
.quick-actions button:not(.send):hover,.material-result-buttons button:hover,.material-result-buttons a:hover,.material-inline-actions button:hover,.material-inline-actions a:hover,.material-viewer-actions button:hover,.material-viewer-actions a:hover,.materials-more:hover{background:#fff!important;background-image:none!important;color:#062F28!important;border-color:#8CBE33!important;box-shadow:0 0 0 2px rgba(140,190,51,.15)!important;transform:none!important;filter:none!important}
.quick-actions button:not(.send):hover img,.material-result-buttons button:hover img,.material-result-buttons a:hover img,.material-inline-actions button:hover img,.material-inline-actions a:hover img,.material-viewer-actions button:hover img,.material-viewer-actions a:hover img{filter:invert(16%) sepia(30%) saturate(800%) hue-rotate(112deg)!important}
.send:hover,.send:focus-visible{background:#8CBE33!important;background-image:none!important;color:#062F28!important;transform:none!important;filter:none!important;box-shadow:none!important}
.material-inline-wrap{border-radius:22px!important;overflow:hidden!important}.material-inline-page:first-child canvas,.material-inline-page:first-child img{border-radius:21px 21px 0 0!important}.material-inline-actions{position:sticky!important;bottom:62px!important}
.material-viewer-pdf-page,.material-viewer-pdf-page canvas,.material-viewer-pdf-page img{border-radius:22px!important}
@media(max-width:900px){.material-result-card{width:100%!important;max-width:none!important}.material-result-main{grid-template-columns:1fr!important}.material-result-image{min-height:0!important;max-height:none!important}.material-result-image>img,.material-result-image>canvas,.material-result-image .material-thumb-canvas{min-height:0!important;max-height:none!important;height:auto!important;border-radius:20px 20px 0 0!important}}
