/* Mobile-first enhancements to the EXISTING Brecollive Bree React chat. */
.bree-compose > .bree-attach-btn {
  flex:0 0 42px; width:42px; height:42px; order:0;
  display:grid; place-items:center; border:1px solid #bbdeef;
  border-radius:13px; background:linear-gradient(145deg,#f8feff,#d9effc);
  color:#075b91; box-shadow:3px 3px 7px #0a47701a,-2px -2px 5px #fff;
  cursor:pointer; font-size:21px; line-height:1;
}
.bree-compose > .bree-attach-btn:hover,.bree-compose > .bree-attach-btn:focus-visible { outline:2px solid #0c8bc2; outline-offset:2px; }
.bree-compose input { min-height:44px; font-size:16px; }
.bree-panel { max-width:calc(100vw - 16px); }
.bree-compose button { touch-action: manipulation; }
@media (max-width: 640px) {
  .bree-root { right:0 !important; bottom:0 !important; left:0; pointer-events:none; }
  .bree-root > * { pointer-events:auto; }
  .bree-panel { position:fixed !important; inset:0 !important; bottom:0 !important;
    width:100vw !important; max-width:none !important;
    height:100dvh !important; max-height:100dvh !important;
    min-height:0 !important; border-radius:0 !important; }
  .bree-header { padding-top:max(14px,env(safe-area-inset-top)); }
  .bree-footer-note { padding-bottom:max(10px, env(safe-area-inset-bottom)); }
  .bree-compose { padding:10px 12px; gap:7px; }
  .bree-compose input { font-size:16px; min-height:44px; }
  .bree-compose > .bree-attach-btn { flex-basis:44px; width:44px; height:44px; }
  .bree-launcher { position:fixed; right:12px; bottom:max(12px,env(safe-area-inset-bottom)); }
  .bree-visible-prompt { display:none; }
}
/* The upload modal is outside React's managed DOM so it survives UI rerenders. */
.bree-file-backdrop { position:fixed; inset:0; z-index:10020; background:#071d34a9;
  display:flex; align-items:center; justify-content:center; padding:16px; backdrop-filter:blur(4px); }
.bree-file-modal { box-sizing:border-box; width:min(100%,490px); max-height:94dvh;
  overflow-y:auto; border-radius:24px; padding:22px; color:#163952;
  font:14px/1.5 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(150deg,#fff,#eef9ff); border:1px solid #fff;
  box-shadow:20px 22px 60px #03182c6b,-4px -4px 14px #ffffff80; }
.bree-file-modal * { box-sizing:border-box; }
.bree-file-modal h2 { margin:0 0 3px; font-size:20px; line-height:1.3; color:#0c3d5f; }
.bree-file-modal p { margin:0 0 16px; color:#536d7e; }
.bree-file-modal label.bree-file-label { display:block; font-weight:650; font-size:13px; margin:10px 0 5px; }
.bree-file-modal input:not([type=checkbox]),.bree-file-modal textarea {
  display:block; width:100%; border:1px solid #c4dbe9; border-radius:12px; padding:12px 13px;
  background:#fff; color:#173d58; font:16px system-ui; outline:none; }
.bree-file-modal input:focus-visible,.bree-file-modal textarea:focus-visible{outline:2px solid #198fce;outline-offset:1px;}
.bree-file-modal .bree-file-consent { display:flex; gap:9px; align-items:flex-start; margin:15px 0; font-size:12px; line-height:1.5; color:#3f6076; }
.bree-file-modal .bree-file-consent input { margin-top:4px; width:16px; height:16px; flex-shrink:0; }
.bree-file-modal .bree-file-actions { display:flex; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
.bree-file-modal button { border:0; padding:11px 17px; border-radius:12px; font:600 14px system-ui; cursor:pointer; min-height:44px; }
.bree-file-modal .bree-file-submit { background:linear-gradient(120deg,#0c7ba9,#07537e); color:#fff; }
.bree-file-modal .bree-file-cancel { color:#285471; background:#e2edf5; }
.bree-file-modal button:disabled { opacity:.5; cursor:default; }
.bree-file-modal .bree-file-result { margin:12px 0; padding:11px 12px; background:#eef5f9; color:#173a4e; border-radius:10px; overflow-wrap:anywhere; }
.bree-file-modal .bree-file-alert { background:#fff1e8; color:#7a432c; padding:10px 12px; border-radius:11px; font-size:12px; margin:8px 0; }
@media(max-width: 600px) {
 .bree-file-backdrop { align-items:flex-end; padding:0; }
 .bree-file-modal { max-height:97dvh; width:100%; padding:22px 16px max(24px,env(safe-area-inset-bottom)); border-radius:23px 23px 0 0; }
}
