
/* Bellavira Family — one portable Madam M companion, 3 existing sites.
   Floating UI only; no changes to existing hero, forms, family header or other apps. */
#bf-madam-bridge{position:fixed;z-index:2147483000;right:18px;bottom:20px;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;font-size:16px;line-height:1.45;color:#163a31}
#bf-madam-bridge *{box-sizing:border-box}
#bf-madam-bridge .bfm-trigger{display:flex;align-items:center;gap:10px;margin-left:auto;padding:13px 18px;border:1px solid #ebce8a;border-radius:28px;background:linear-gradient(128deg,#063b30,#0b5e46 60%,#07382c);box-shadow:0 5px 22px #002d2440;color:#f9e3a7;font-weight:750;cursor:pointer;font-size:16px;max-width:90vw}
#bf-madam-bridge .bfm-crown{display:inline-grid;place-items:center;border:1px solid #f8db9b;border-radius:50%;height:33px;width:33px;color:#ffe6a6;font:700 22px Georgia,serif;background:linear-gradient(125deg,#967138,#fce8b5,#a37d3b);text-shadow:0 1px 3px #463015}
#bf-madam-bridge .bfm-crown img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
#bf-madam-bridge .bfm-window{width:min(415px,calc(100vw - 24px));height:min(670px,calc(100dvh - 94px));min-height:350px;margin:0 0 12px auto;background:#fffdf7;border:2px solid #b28b43;border-radius:18px;box-shadow:0 14px 45px #001d1769;overflow:hidden;display:flex;flex-direction:column}
#bf-madam-bridge .bfm-window[hidden]{display:none}
#bf-madam-bridge .bfm-head{background:linear-gradient(110deg,#043b2c,#0b5841);color:#fce9b2;padding:13px 15px;display:flex;align-items:center;gap:8px;justify-content:space-between}
#bf-madam-bridge .bfm-head strong{font:700 22px Georgia,serif}
#bf-madam-bridge select{color:#12372b;border:1px solid #c4a46a;border-radius:8px;background:#fffcf4;padding:7px;font-size:13px;max-width:110px}
#bf-madam-bridge .bfm-close{font-size:25px;line-height:1;border:0;background:transparent;color:#fff4d5;padding:4px 7px;cursor:pointer}
#bf-madam-bridge .bfm-note{font-size:12px;padding:9px 13px;background:#f2ead7;color:#5b482f;border-bottom:1px solid #deccaa}
#bf-madam-bridge .bfm-dialog{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:9px;background:#fffbf5}
#bf-madam-bridge .bfm-line{max-width:94%;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;color:#123829;background:#e9f1e9}
#bf-madam-bridge .bfm-line.bfm-you{margin-left:auto;background:#07533c;color:#fff8e6}
#bf-madam-bridge .bfm-chips{display:flex;flex-wrap:wrap;gap:6px;padding:7px 12px;border-top:1px solid #e4d2aa}
#bf-madam-bridge button.bfm-chip{border:1px solid #c3a167;background:#fff7e6;color:#244a3a;border-radius:18px;font-size:12px;font-weight:650;padding:7px 9px;cursor:pointer}
#bf-madam-bridge .bfm-entry{display:flex;gap:7px;padding:9px 11px}
#bf-madam-bridge textarea{flex:1;min-width:0;max-height:90px;min-height:55px;resize:vertical;padding:9px;border:1px solid #beae90;border-radius:9px;color:#143c2e;background:#fff;font:inherit}
#bf-madam-bridge .bfm-send{border:1px solid #a4813b;border-radius:10px;padding:9px 12px;background:linear-gradient(130deg,#bb8d3a,#fff1bc,#b18438);color:#33270d;font-weight:750;cursor:pointer}
#bf-madam-bridge .bfm-actions{padding:8px 12px 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#bf-madam-bridge .bfm-actions a{border-radius:10px;padding:10px 13px;background:#0b523f;color:#fff6d4;text-decoration:none;font-weight:750;font-size:14px;line-height:1.3}
#bf-madam-bridge .bfm-copy{border:1px solid #b19361;border-radius:10px;padding:9px 10px;background:#fff6e6;color:#264b39;font-weight:600;cursor:pointer}
#bf-madam-bridge .bfm-status{padding:0 12px 10px;font-size:12px;color:#455e51}
#bf-madam-bridge :focus-visible{outline:3px solid #b58827;outline-offset:2px}
@media(max-width:500px){#bf-madam-bridge{right:9px;bottom:9px}#bf-madam-bridge .bfm-window{height:min(75dvh,660px);min-height:300px}}
/* Dialog remains accessible: hide redundant floating launcher while open. */
#bf-madam-bridge .bfm-window:not([hidden]) + .bfm-trigger{visibility:hidden}

/* Bellavira Family Imperial Gold: a human face on BOTH launcher and dialog. */
#bf-madam-bridge .bfm-avatar{flex:0 0 44px;width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #e9cb83;box-shadow:0 0 0 2px #114d3b,0 1px 8px #051a1270}
#bf-madam-bridge .bfm-head strong{flex:1;min-width:0}
#bf-madam-bridge .bfm-chips{overflow-y:auto;overscroll-behavior:contain;max-height:180px;flex:0 0 auto;align-content:flex-start}
#bf-madam-bridge .bfm-chips.bfm-expanded{max-height:228px}
#bf-madam-bridge .bfm-menu-toggle{background:linear-gradient(120deg,#07533c,#126b4d)!important;border-color:#dfc17c!important;color:#fff4d0!important;font-weight:750!important}
#bf-madam-bridge .bfm-reset{background:#fbf7ef}
#bf-madam-bridge .bfm-window{min-height:0}
#bf-madam-bridge .bfm-dialog{min-height:0}
@media(max-width:500px){
 #bf-madam-bridge .bfm-avatar{width:38px;height:38px;flex-basis:38px}
 #bf-madam-bridge .bfm-head{padding:9px 10px;gap:7px}
 #bf-madam-bridge .bfm-head strong{font-size:19px}
 #bf-madam-bridge .bfm-chips{max-height:155px}
 #bf-madam-bridge .bfm-chips.bfm-expanded{max-height:195px}
 #bf-madam-bridge .bfm-window{height:min(78dvh,680px)}
}

/* 2026-11-18 P0: exact owner-approved static FULL CIRCLE, never face-only crop. */
#bf-madam-bridge .bfm-crown{height:46px;width:46px;flex:0 0 46px;background:#103d2f;border:2px solid #d4b267;overflow:hidden;text-shadow:none}
#bf-madam-bridge .bfm-crown img{height:100%;width:100%;object-fit:contain;object-position:center;background:#fffdf7}
#bf-madam-bridge .bfm-avatar{width:56px;height:56px;flex:0 0 56px;object-fit:contain;object-position:center;background:#fffdf7;border:1px solid #d4b267}
#bf-madam-bridge .bfm-trigger{min-height:62px}
@media(max-width:500px){
 #bf-madam-bridge .bfm-crown{height:44px;width:44px;flex-basis:44px}
 #bf-madam-bridge .bfm-avatar{width:48px;height:48px;flex-basis:48px}
 #bf-madam-bridge .bfm-trigger{min-height:58px}
}


