.fbc-ai{position:fixed;right:22px;bottom:20px;z-index:9999;font-family:inherit;color:#172b4d}.fbc-ai-launch{display:flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:12px 18px;background:#102b50;color:#fff;box-shadow:0 8px 28px #102b5038;font:inherit;font-weight:700;cursor:pointer}.fbc-ai-launch:hover{background:#193b68}.fbc-ai-launch-icon{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:#d71935;color:#fff}.fbc-ai-launch-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.fbc-ai-panel{position:absolute;right:0;bottom:64px;width:min(390px,calc(100vw - 28px));height:min(590px,calc(100dvh - 110px));min-height:380px;background:#fff;border:1px solid #dce2ea;border-radius:16px;box-shadow:0 18px 60px #102b5030;overflow:hidden;display:flex;flex-direction:column}.fbc-ai-panel[hidden]{display:none}.fbc-ai-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#102b50;color:#fff}.fbc-ai-head>div{display:flex;flex-direction:column;gap:4px}.fbc-ai-head strong{font-size:15px}.fbc-ai-head span{font-size:12px;color:#dce6f2}.fbc-ai-close{border:0;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer}.fbc-ai-messages{padding:15px;display:flex;flex-direction:column;gap:12px;overflow:auto;flex:1;background:#f7f9fc}.fbc-ai-message{max-width:92%;padding:11px 13px;border-radius:13px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.fbc-ai-message.assistant{align-self:flex-start;background:#fff;border:1px solid #e1e7ef;border-bottom-left-radius:4px}.fbc-ai-message.user{align-self:flex-end;background:#102b50;color:#fff;border-bottom-right-radius:4px}.fbc-ai-message.error{border-color:#f2c5cb;color:#8c1d2c}.fbc-ai-form{display:flex;align-items:flex-end;gap:8px;padding:11px;border-top:1px solid #e7ebf1;background:#fff}.fbc-ai-form textarea{resize:none;flex:1;min-width:0;max-height:100px;border:1px solid #cbd5e1;border-radius:10px;padding:10px 11px;font:inherit;font-size:14px;line-height:1.4;outline:none}.fbc-ai-form textarea:focus{border-color:#1c4778;box-shadow:0 0 0 2px #1c47781a}.fbc-ai-form button{flex:0 0 40px;height:40px;border:0;border-radius:10px;background:#d71935;color:#fff;font-size:19px;cursor:pointer}.fbc-ai-form button:disabled{opacity:.5;cursor:wait}.fbc-ai-note{font-size:10px;line-height:1.4;color:#667085;padding:0 13px 10px;margin:0;background:#fff}.fbc-ai-properties{display:grid;gap:10px;margin-top:10px}.fbc-ai-property{display:grid;grid-template-columns:94px minmax(0,1fr);gap:10px;border:1px solid #e0e6ee;border-radius:10px;background:#fff;overflow:hidden;color:#172b4d;text-decoration:none}.fbc-ai-property img{width:94px;height:100%;min-height:110px;max-height:150px;object-fit:cover;background:#eef2f6}.fbc-ai-property-copy{padding:9px 8px 9px 0;min-width:0}.fbc-ai-property-copy strong{display:block;font-size:12px;line-height:1.4;margin-bottom:4px}.fbc-ai-property-copy span{display:block;font-size:11px;line-height:1.45;color:#5b6678;margin-top:2px}.fbc-ai-property-copy b{display:block;color:#b9152d;font-size:13px;margin-top:5px}.fbc-ai-typing{color:#667085;font-size:12px;font-style:italic}.fbc-ai-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:480px){.fbc-ai{right:12px;bottom:12px}.fbc-ai-launch{padding:10px 13px;font-size:13px}.fbc-ai-panel{right:-4px;bottom:58px;width:calc(100vw - 20px);height:min(620px,calc(100dvh - 88px));min-height:350px}.fbc-ai-property{grid-template-columns:82px minmax(0,1fr)}.fbc-ai-property img{width:82px}}

/* Mobile: keep the AI launcher floating at the bottom center; desktop stays bottom-right. */
@media(max-width:480px){.fbc-ai{left:0;right:0;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:none;width:100%;max-width:none;display:flex;justify-content:center;pointer-events:none}.fbc-ai-launch{pointer-events:auto;justify-content:center;max-width:calc(100vw - 24px);padding:11px 17px;font-size:13px;white-space:nowrap}.fbc-ai-launch-icon{width:34px;height:34px;flex-basis:34px}.fbc-ai-launch-icon svg{width:25px;height:25px}.fbc-ai-panel{position:fixed;left:50%;right:auto;bottom:calc(72px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:calc(100vw - 20px);max-width:420px;height:min(620px,calc(100dvh - 110px));min-height:350px}}


/* Fix mobile touch-through: the chat panel must receive taps instead of page links behind it. */
@media (max-width: 480px) {
  .fbc-ai-panel {
    pointer-events: auto !important;
    touch-action: manipulation;
    z-index: 10001;
  }
  .fbc-ai-panel * {
    pointer-events: auto;
  }
  .fbc-ai-close,
  .fbc-ai-form button,
  .fbc-ai-form textarea,
  .fbc-ai-property {
    position: relative;
    z-index: 1;
    touch-action: manipulation;
  }
}

.fbc-ai-char-count{font-size:10px;line-height:1.3;color:#667085;text-align:right;padding:0 13px 5px;background:#fff;font-variant-numeric:tabular-nums}.fbc-ai-chat-char-count{padding-top:0}

/* Compact match score: secondary to the existing project title; preserve the original property-card layout. */
.fbc-ai-property-copy .fbc-ai-property-match{display:block;margin-top:3px;font-size:10px;line-height:1.35;font-weight:600;color:#5b6678;}
