/* Bristol Roofing AI - standalone voice and text widget */
#br-ai-root,#br-ai-root *{box-sizing:border-box}#br-ai-root{font-family:inherit;color:#193a31;position:relative;z-index:2147482000}#br-ai-root button,#br-ai-root input,#br-ai-root textarea{font:inherit}#br-ai-root button{cursor:pointer}#br-ai-root button:focus-visible,#br-ai-root input:focus-visible,#br-ai-root textarea:focus-visible{outline:3px solid #d79331;outline-offset:2px}.bra-launch{position:fixed;bottom:24px;right:22px;display:flex;align-items:center;gap:10px;border:1px solid #b78c3a;border-radius:40px;background:#183c33;color:white;padding:10px 16px 10px 9px;box-shadow:0 12px 35px #102a2360;z-index:2;font-weight:700}.bra-orb{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#d79331;color:#17392f;font-size:22px}.bra-backdrop{position:fixed;inset:0;background:#061b1490;z-index:3}.bra-panel{position:fixed;right:20px;bottom:22px;width:min(430px,calc(100vw - 24px));height:min(680px,calc(100dvh - 40px));display:flex;flex-direction:column;background:#fff;border:1px solid #c7d4ce;border-radius:22px;overflow:hidden;box-shadow:0 24px 80px #10251e80;z-index:4}.bra-head{background:linear-gradient(115deg,#143d32,#235447);color:#fff;padding:17px 17px 14px;flex:none}.bra-headtop{display:flex;align-items:center;gap:12px}.bra-title{font-size:19px;font-weight:800;line-height:1.2}.bra-sub{font-size:12px;color:#d5e8df;margin-top:4px}.bra-hact{margin-left:auto;display:flex;gap:6px}.bra-iconbtn{min-width:35px;min-height:35px;border:1px solid #ffffff45;border-radius:50%;background:#ffffff15;color:inherit;display:grid;place-items:center;font-size:19px}.bra-intro{font-size:13px;line-height:1.45;margin:13px 0 0;color:#e2f0e8}.bra-control{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 15px;background:#f2f7f4;border-bottom:1px solid #dce7df;flex:none}.bra-mode-label{font-weight:750;font-size:13px}.bra-mode-help{font-size:11px;color:#547167}.bra-switch{border:1px solid #bccbc4;border-radius:22px;padding:6px 12px;background:#fff;font-size:12px;color:#194337;font-weight:800;white-space:nowrap}.bra-switch[aria-pressed=true]{background:#d79331;color:#fff;border-color:#d79331}.bra-messages{padding:16px 13px;flex:1;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;background:#f9fbfa}.bra-bubble{border-radius:16px;padding:12px 13px;font-size:13px;line-height:1.55;max-width:92%;white-space:pre-wrap;overflow-wrap:anywhere}.bra-bubble.ai{align-self:flex-start;background:#fff;border:1px solid #dbe7e0;color:#234237}.bra-bubble.user{align-self:flex-end;background:#173c33;color:white}.bra-status{font-size:12px;color:#7e5321;min-height:14px}.bra-quick{display:flex;flex-wrap:wrap;gap:7px}.bra-quick button{border:1px solid #d7e3dc;background:white;color:#24493b;padding:7px 9px;border-radius:11px;text-align:left;font-size:12px}.bra-composer{padding:12px;background:#fff;border-top:1px solid #dce5de;flex:none}.bra-attach{display:flex;align-items:center;gap:8px;margin-bottom:9px}.bra-attach button{border:1px solid #d6e2db;border-radius:9px;background:#f5f8f6;padding:6px 9px;font-size:12px;color:#1d4938}.bra-file{font-size:11px;color:#416354;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.bra-entry{display:flex;align-items:flex-end;gap:7px}.bra-entry textarea{flex:1;resize:none;border:1px solid #cad9d1;border-radius:14px;padding:10px 11px;height:43px;max-height:110px;min-width:0;outline:0;font-size:13px;color:#193c31}.bra-entry button{min-width:42px;height:42px;border:0;border-radius:12px;background:#193e34;color:#fff;font-size:19px}.bra-entry button:disabled{opacity:.55;cursor:not-allowed}.bra-entry .bra-mic{background:#d79331;color:#173a31}.bra-entry .bra-mic.listening{animation:bra-pulse 1s infinite;background:#e75b4d;color:white}.bra-links{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:9px;font-size:11px}.bra-links a{color:#1b5e43;text-decoration:underline}.bra-links span{color:#6c8174}.bra-hidden{display:none!important}.bra-error{color:#a23824;font-size:12px}.bra-speaking{display:flex;align-items:center;gap:5px;font-size:12px;color:#277355}.bra-bars{display:flex;gap:3px;align-items:center;height:16px}.bra-bars i{width:3px;background:#d79331;border-radius:4px;animation:bra-wave 0.75s infinite alternate;height:5px}.bra-bars i:nth-child(2){animation-delay:.17s}.bra-bars i:nth-child(3){animation-delay:.3s}.bra-bars i:nth-child(4){animation-delay:.43s}@keyframes bra-wave{to{height:15px}}@keyframes bra-pulse{50%{box-shadow:0 0 0 9px #d7933130}}@media(max-width:600px){.bra-panel{inset:0;width:100vw;height:100dvh;max-height:none;border-radius:0}.bra-launch{right:12px;bottom:14px}.bra-head{padding:13px 14px}.bra-messages{padding:12px}.bra-intro{margin-top:9px}}@media(prefers-reduced-motion:reduce){.bra-bars i,.bra-entry .bra-mic.listening{animation:none}}

/* One-tap voice: larger microphone control, particularly on laptops */
#br-ai-root .bra-entry .bra-mic{min-width:58px;width:58px;height:52px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;flex:none}
#br-ai-root .bra-entry .bra-mic svg{width:29px;height:29px;display:block}
#br-ai-root .bra-entry .bra-mic.listening{background:#d65c41;color:#fff}
@media(max-width:600px){#br-ai-root .bra-entry .bra-mic{min-width:49px;width:49px;height:48px}#br-ai-root .bra-entry .bra-mic svg{width:27px;height:27px}}

/* Compact composer: upload icon, question, microphone, send in one row */
#br-ai-root .bra-composer{padding:12px 13px 10px}
#br-ai-root .bra-entry{display:flex;align-items:center;gap:7px;width:100%;flex-wrap:nowrap}
#br-ai-root .bra-entry textarea{min-width:0;flex:1 1 0;width:1%;height:52px;max-height:110px;align-self:center;padding:14px 10px;line-height:1.35}
#br-ai-root .bra-entry .bra-upload-icon{flex:0 0 46px;min-width:46px;width:46px;height:52px;display:flex;align-items:center;justify-content:center;background:#f2f7f4;color:#1a493b;border:1px solid #d6e2db;border-radius:13px;padding:0}
#br-ai-root .bra-entry .bra-upload-icon svg{display:block;width:23px;height:23px}
#br-ai-root .bra-entry #bra-send{flex:0 0 46px;min-width:46px;width:46px;height:52px;align-self:center;display:grid;place-items:center}
#br-ai-root .bra-entry .bra-mic{flex:0 0 58px;align-self:center}
#br-ai-root .bra-file{display:block;margin-top:5px;line-height:1.3;max-width:100%;min-height:0;font-size:11px}
#br-ai-root .bra-file:empty{display:none}
@media(max-width:600px){
 #br-ai-root .bra-composer{padding:10px 9px}
 #br-ai-root .bra-entry{gap:5px}
 #br-ai-root .bra-entry textarea{height:46px;padding:12px 8px;font-size:13px}
 #br-ai-root .bra-entry .bra-upload-icon{flex-basis:40px;min-width:40px;width:40px;height:46px;border-radius:12px}
 #br-ai-root .bra-entry .bra-upload-icon svg{width:22px;height:22px}
 #br-ai-root .bra-entry .bra-mic{flex-basis:46px;min-width:46px;width:46px;height:46px}
 #br-ai-root .bra-entry #bra-send{flex-basis:40px;min-width:40px;width:40px;height:46px}
}
/* Premium inline inspection request modal */
#br-ai-root .bra-lead{position:fixed;inset:0;background:rgba(3,23,19,.65);display:flex;align-items:center;justify-content:center;padding:16px;z-index:2147483647;box-sizing:border-box}
#br-ai-root .bra-lead.bra-hidden{display:none!important}
#br-ai-root .bra-lead-card{position:relative;box-sizing:border-box;width:min(440px,100%);max-height:94dvh;overflow:auto;background:#fff;border-radius:16px;padding:24px;color:#173d33;box-shadow:0 18px 70px #0004;font-family:inherit}
#br-ai-root .bra-lead-card h3{font-size:23px;line-height:1.2;margin:0 30px 8px 0;color:#173d33}
#br-ai-root .bra-lead-card p{font-size:14px;line-height:1.5;margin:0 0 12px}
#br-ai-root .bra-lead-close{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:28px;color:#173d33;cursor:pointer}
#br-ai-root .bra-lead-form,#br-ai-root #bra-lead-form{display:grid;gap:10px}
#br-ai-root #bra-lead-form label{display:grid;gap:4px;font-size:13px;font-weight:650;color:#173d33}
#br-ai-root #bra-lead-form input,#br-ai-root #bra-lead-form textarea{box-sizing:border-box;width:100%;border:1px solid #cddbd5;border-radius:9px;background:#fff;color:#173d33;padding:10px;font:inherit;font-size:15px}
#br-ai-root #bra-lead-form button{border:0;background:#d79331;color:#102f27;padding:13px;border-radius:10px;font:inherit;font-weight:750;cursor:pointer}
#br-ai-root #bra-lead-form button:disabled{opacity:.6}
#br-ai-root .bra-lead-feedback{margin-top:12px!important;min-height:20px;font-size:13px}

/* Contextual navigation & safe photo prompt shown below AI response */
.bra-relevant-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px;white-space:normal}
.bra-relevant-links a{font-size:12px;color:#164e3f;background:#eef6f1;border:1px solid #bdd5c7;border-radius:9px;padding:6px 9px;text-decoration:underline}
.bra-photo-prompt{display:inline-flex;margin-top:10px;padding:8px 10px;border:1px solid #d79331;background:#fff9ed;border-radius:10px;color:#234538;font-size:12px;font-weight:700;white-space:normal;text-align:left}
