/* Business Liftoff AI Launch Assistant — persistent, user-opened nonmodal dock. */
.bl-chat{--bc-navy:#092a4c;--bc-blue:#087cc1;position:fixed;right:18px;bottom:max(16px,env(safe-area-inset-bottom));z-index:89;width:auto;max-width:calc(100vw - 24px);font:400 13px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1a3850;isolation:isolate;}
.bl-chat[hidden],.bl-chat-panel[hidden],.bl-chat-launch[hidden],.bl-chat-suggestions[hidden]{display:none!important}
.bl-chat *{box-sizing:border-box}
.bl-chat-launch{display:flex!important;align-items:center;gap:9px;min-height:49px;border:1px solid #1f78b7;background:linear-gradient(130deg,#0a3667,#087cc1);padding:11px 16px;color:#fff;box-shadow:0 8px 28px #113e6170;border-radius:15px;font:750 13px/1.25 system-ui,-apple-system,sans-serif;letter-spacing:.01em;cursor:pointer;transition:transform .17s,box-shadow .17s;}
.bl-chat-launch[hidden]{display:none!important}
.bl-chat-launch:hover{transform:translateY(-2px);box-shadow:0 12px 30px #113e6180}
.bl-chat-launch svg{flex:none}
.bl-chat-launch-dot{width:7px;height:7px;border-radius:50%;background:#69e7c3;box-shadow:0 0 0 3px #63eac328;margin-left:4px}
.bl-chat.is-open{width:370px;}
.bl-chat-panel{width:100%;height:min(570px,calc(100dvh - 105px));max-height:calc(100vh - 85px);display:flex;flex-direction:column;background:#fff;border:1px solid #bfd7e8;box-shadow:0 16px 55px #163a5866;border-radius:17px;overflow:hidden}
.bl-chat-head{display:flex;align-items:center;gap:10px;background:#082b50;color:#fff;padding:14px 14px 14px 16px;flex:none;min-height:66px}
.bl-chat-head-mark{width:33px;height:33px;border:1px solid #3e83b6;border-radius:10px;display:grid;place-items:center;font-size:22px;background:#145081;color:#c7eeff}
.bl-chat-head>div:nth-child(2){flex:1;min-width:0}
.bl-chat-head strong,.bl-chat-head span{display:block}
.bl-chat-head strong{font:800 15px/1.3 system-ui,-apple-system,sans-serif;letter-spacing:-.015em;color:#fff}
.bl-chat-head span{font-size:11px;color:#b2d4e9;margin-top:2px}
.bl-chat-close{margin:0;flex:none;align-self:center;display:grid;place-items:center;background:#ffffff13;color:white;border:1px solid #ffffff31;border-radius:9px;width:31px;height:31px;font-size:24px;line-height:1;cursor:pointer}
.bl-chat-close:hover{background:#ffffff28}
.bl-chat-messages{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;overflow-y:auto;padding:18px 14px;background:#f6fafc;overscroll-behavior:contain}
.bl-chat-msg{max-width:95%;flex:0 0 auto;align-self:flex-start}
.bl-chat-msg p{display:block;max-width:100%;font:400 13px/1.58 system-ui,-apple-system,sans-serif;letter-spacing:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#2a4b64;background:#fff;border:1px solid #dbe9f1;border-radius:13px 13px 13px 4px;padding:11px 13px;margin:0;box-shadow:0 2px 6px #1845610a}
.bl-chat-msg.is-user{align-self:flex-end}
.bl-chat-msg.is-user p{background:#0c73b4;color:#fff;border-color:#0c73b4;border-radius:13px 13px 4px 13px}
.bl-chat-msg.is-loading{opacity:.7}
.bl-chat-links{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 0}
.bl-chat-links a{display:inline-flex;gap:5px;align-items:center;border:1px solid #b9d7e9;background:#e9f6ff;color:#096ba5!important;border-radius:8px;padding:7px 9px;font:750 11px/1.3 system-ui,-apple-system,sans-serif;text-decoration:none!important}
.bl-chat-links a:hover{background:#d2eafa}
.bl-chat-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:9px 13px;border-top:1px solid #e2edf4;background:#fff;flex:none}
.bl-chat-suggestions button{padding:7px 9px;background:#f0f8fc;border:1px solid #d5e5f0;border-radius:8px;color:#28648b;white-space:normal;text-align:left;font:650 11px/1.3 system-ui,-apple-system,sans-serif}
.bl-chat-suggestions button:hover{background:#e0f0fa}
.bl-chat-form{display:flex;align-items:flex-end;gap:7px;padding:12px 12px 6px;border-top:1px solid #e5edf2;background:#fff;flex:none;margin:0}
.bl-chat-input-wrap{flex:1;min-width:0;margin:0;display:block}
.bl-chat-input-wrap .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bl-chat-input-wrap textarea{font:400 13px/1.5 system-ui,-apple-system,sans-serif!important;padding:10px 11px!important;margin:0!important;display:block;border:1px solid #cbdde9!important;background:#fafcfe!important;color:#173b56!important;border-radius:10px!important;resize:vertical;min-height:43px;max-height:90px;width:100%!important;outline:0;box-shadow:none!important}
.bl-chat-input-wrap textarea:focus{border-color:#0e87d0!important;box-shadow:0 0 0 2px #0e87d018!important}
.bl-chat-send{display:grid;place-items:center;width:43px;height:43px;flex:none;border:0;border-radius:10px;background:#087cc1;color:#fff;cursor:pointer}
.bl-chat-send:hover{background:#08669c}
.bl-chat-send:disabled{opacity:.48;cursor:wait}
.bl-chat-note{flex:none;color:#8197a7;font:400 10px/1.45 system-ui,-apple-system,sans-serif;text-align:center;padding:1px 12px 9px;background:white;margin:0!important}
.bl-chat-note a{color:#4f819f;text-decoration:underline}
@media(min-width:1120px){
 body.bl-chat-open #layout:not(.private),body.bl-chat-open>main{margin-right:390px!important;transition:margin-right .23s ease}
 .bl-chat.is-open{right:16px}
}
@media(max-width:650px){
 .bl-chat{right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:89}
 .bl-chat-launch{min-height:47px;padding:10px 14px;font-size:12px;border-radius:13px;}
 .bl-chat.is-open{right:0;bottom:0;width:100vw;max-width:none;padding:0}
 .bl-chat.is-open .bl-chat-panel{width:100%;height:min(68dvh,580px);max-height:calc(100dvh - 70px);border-radius:17px 17px 0 0;border-bottom:0;box-shadow:0 -9px 33px #18395433;}
 .bl-chat-msg p{font-size:13px}
 .bl-chat-note{padding-bottom:max(12px,env(safe-area-inset-bottom));}
}
@media(prefers-reduced-motion:reduce){
 .bl-chat-launch,body.bl-chat-open #layout,body.bl-chat-open>main{transition:none!important}
}

/* iPhone Safari: 16px text prevents focusing the composer from zooming the page.
   Keyboard-aware positioning is set from visualViewport only while typing. */
@media(max-width:650px){
 .bl-chat.is-open:not(.has-keyboard) .bl-chat-panel{height:min(42dvh,370px)!important;min-height:310px!important;max-height:calc(100dvh - 105px)!important;}
 .bl-chat-input-wrap textarea{font-size:16px!important;line-height:1.35!important;height:46px;min-height:46px!important;max-height:94px!important;resize:none!important;overflow-y:auto!important;white-space:pre-wrap!important;}
 .bl-chat.is-open.is-typing .bl-chat-suggestions{display:none!important;}
 .bl-chat.is-open.has-keyboard{
   position:fixed!important;
   top:var(--bl-chat-visual-top,0px)!important;
   bottom:auto!important;
   right:0!important;
   width:100vw!important;
   height:var(--bl-chat-visual-height,380px)!important;
   max-height:none!important;
 }
 .bl-chat.is-open.has-keyboard .bl-chat-panel{
   height:100%!important;
   max-height:100%!important;
   border-radius:13px!important;
   border-bottom:1px solid #bfd7e8!important;
 }
 .bl-chat.is-open.has-keyboard .bl-chat-note{display:none!important;}
 .bl-chat.is-open.has-keyboard .bl-chat-head{min-height:54px;padding:9px 12px!important;}
 .bl-chat.is-open.has-keyboard .bl-chat-messages{padding:11px 12px!important;}
 .bl-chat.is-open.has-keyboard .bl-chat-form{padding:9px 10px!important;}
}

/* Compact mobile drawer: keep the composer and send action fully visible. */
@media(max-width:650px){
 .bl-chat.is-open:not(.has-keyboard) .bl-chat-head{min-height:57px;padding:9px 12px!important}
 .bl-chat.is-open:not(.has-keyboard) .bl-chat-messages{padding:12px!important}
 .bl-chat.is-open:not(.has-keyboard) .bl-chat-suggestions{padding:8px 10px!important;gap:6px!important}
 .bl-chat.is-open:not(.has-keyboard) .bl-chat-suggestions button{font-size:10px!important;padding:7px 8px!important}
 .bl-chat.is-open .bl-chat-form{align-items:center!important;padding:9px 10px 5px!important}
 .bl-chat.is-open .bl-chat-note{font-size:9px!important;padding:2px 9px max(10px,env(safe-area-inset-bottom))!important}
 .bl-chat.is-open.has-keyboard .bl-chat-note{display:none!important}
}

/* After the first AI response, prioritize reading rather than the compact
   opening greeting. iOS keyboard mode still takes precedence while typing. */
@media(max-width:650px){
 .bl-chat.is-open.has-reply:not(.has-keyboard) .bl-chat-panel{
   height:min(76dvh,690px)!important;
   min-height:350px!important;
   max-height:calc(100dvh - 94px)!important;
 }
}

/* Contextual one-tap replies below the latest AI question. */
.bl-chat-suggestions.is-contextual{gap:8px;align-items:stretch;}
.bl-chat-suggestions.is-contextual button{flex:1 1 135px;min-height:40px;padding:9px 11px;font-size:12px;line-height:1.35;text-align:center;border:1px solid #b6d7e9;background:#e9f6ff;color:#145b89;border-radius:9px;overflow-wrap:anywhere;}
.bl-chat-suggestions.is-contextual button:hover,.bl-chat-suggestions.is-contextual button:focus-visible{background:#d6eefa;border-color:#1286c6;outline-offset:2px;}
@media(max-width:650px){
 .bl-chat.is-open:not(.has-keyboard) .bl-chat-suggestions.is-contextual{padding:9px 11px!important;gap:8px!important;}
 .bl-chat.is-open:not(.has-keyboard) .bl-chat-suggestions.is-contextual button{min-height:42px!important;font-size:11px!important;line-height:1.3!important;padding:9px 9px!important;}
}

/* Follow-up choices are attached to the last message, never squeezed
   behind the fixed composer on iPhone. */
.bl-chat-quick-replies{width:100%;flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;padding:1px 0 10px;align-items:stretch;}
.bl-chat-quick-replies button{flex:1 1 135px;min-width:0;min-height:43px;background:#e9f6ff;border:1px solid #a8d1e9;border-radius:9px;padding:10px 10px;color:#145d8e;font:750 12px/1.38 system-ui,-apple-system,sans-serif;text-align:center;white-space:normal;overflow-wrap:break-word;cursor:pointer;}
.bl-chat-quick-replies button.is-cta{background:#087cc1;border-color:#087cc1;color:#fff;}
.bl-chat-quick-replies button:hover,.bl-chat-quick-replies button:focus-visible{filter:brightness(.96);outline-offset:2px;}
@media(max-width:650px){.bl-chat-quick-replies{padding:3px 0 12px;gap:7px}.bl-chat-quick-replies button{font-size:11px;min-height:43px;padding:9px 8px;}}

/* Mobile-first: compact accessible floating assistant that does not cover
   the width of a primary call-to-action on small devices. */
@media (max-width:650px) {
  .bl-chat:not(.is-open) .bl-chat-launch {
    width:49px!important;height:49px!important;min-width:49px!important;min-height:49px!important;
    display:grid!important;place-items:center!important;position:relative;
    padding:0!important;border-radius:50%!important;
    box-shadow:0 4px 16px #0b335355;
  }
  .bl-chat:not(.is-open) .bl-chat-launch svg {width:23px;height:23px}
  .bl-chat:not(.is-open) .bl-chat-launch>span:not(.bl-chat-launch-dot){display:none!important}
  .bl-chat:not(.is-open) .bl-chat-launch-dot {
    position:absolute;top:6px;right:5px;width:7px;height:7px;margin:0;
  }
  .bl-chat:not(.is-open) {right:12px;bottom:max(13px,env(safe-area-inset-bottom))}
}
