/* B&H chat UI v2: structure shared by concepts 16 and 17 (2026-09-15).
   Layout, the phone sheet, scrolling and accessibility only. Each concept's assistant.css sets the look.
   Performance: solid fills (no backdrop-filter, no blend modes, no filters), transform/opacity motion,
   will-change only while the panel animates (.is-anim), and the panel is display:none when closed. */
.bhc{--bhc-z-launch:40;--bhc-z-panel:60;--bhc-gap:20px;--bhc-w:408px;--bhc-h:700px;--bhc-top:96px;--bhc-radius:28px;--bhc-ease:cubic-bezier(.16,1,.3,1)}
.bhc *,.bhc *::before,.bhc *::after{box-sizing:border-box}
.bhc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.bhc-launch{position:fixed;right:var(--bhc-gap);bottom:var(--bhc-gap);z-index:var(--bhc-z-launch)}
.bhc:not(.is-ready) .bhc-launch{opacity:0;translate:0 16px;pointer-events:none}
.bhc.is-open .bhc-launch{opacity:0;translate:0 12px;pointer-events:none}
/* phones: a compact circle held 12px off the edges (skins draw it); it slides aside while the page scrolls */
@media (max-width:699px){
  .bhc-launch{right:12px;bottom:calc(12px + env(safe-area-inset-bottom, 0px) + var(--bhc-lift, 0px))}
  .bhc.is-away:not(.is-open) .bhc-launch{opacity:0;translate:24px 0;pointer-events:none}
  .bhc-launch-text{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

.bhc-panel{position:fixed;right:var(--bhc-gap);bottom:var(--bhc-gap);z-index:var(--bhc-z-panel);display:flex;flex-direction:column;overflow:hidden;
  width:min(var(--bhc-w),calc(100vw - 2 * var(--bhc-gap)));height:min(var(--bhc-h),calc(100vh - var(--bhc-top) - var(--bhc-gap)));border-radius:var(--bhc-radius);
  opacity:0;transform:translateY(14px) scale(.965);transform-origin:100% 100%;transition:opacity .2s ease,transform .36s var(--bhc-ease)}
.bhc.is-open .bhc-panel{opacity:1;transform:none;transition:opacity .26s ease,transform .56s var(--bhc-spring,var(--bhc-ease))}
.bhc.is-anim .bhc-panel{will-change:transform,opacity}
.bhc:not(.is-open) .bhc-panel{pointer-events:none}   /* while it fades out, clicks reach the launcher beneath */
.bhc-panel:focus{outline:none}
.bhc-grab{display:none}

.bhc-head{position:relative;flex:none;display:flex;align-items:center;gap:12px}
.bhc-head-text{flex:1;min-width:0}
.bhc-title{margin:0}
.bhc-sub{margin:0;display:flex;align-items:center;gap:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bhc-dot{flex:none}
.bhc-iconbtn{flex:none;display:grid;place-items:center;padding:0;border:0;cursor:pointer;font:inherit}
.bhc-iconbtn .bhc-ic{width:18px;height:18px}

.bhc-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.bhc-log{display:flex;flex-direction:column;gap:16px}
.bhc-msg{max-width:100%;animation:bhc-rise .38s var(--bhc-ease) both}
.bhc-msg--user{align-self:flex-end;max-width:86%}
.bhc-msg--user p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.bhc-msg--bot{align-self:stretch;min-width:0}
.bhc-body{overflow-wrap:anywhere}
.bhc-body p{margin:0 0 .65em}.bhc-body p:last-child{margin-bottom:0}
.bhc-body ul{margin:.2em 0 .7em;padding-left:1.15em}.bhc-body ul:last-child{margin-bottom:0}.bhc-body li{margin:.3em 0}
.bhc-typing{display:none;align-items:center;gap:5px;height:24px}
.bhc-msg.is-thinking .bhc-typing{display:flex}
.bhc-typing i{width:7px;height:7px;border-radius:50%;animation:bhc-dot 1.1s ease-in-out infinite}
.bhc-typing i:nth-child(2){animation-delay:.15s}.bhc-typing i:nth-child(3){animation-delay:.3s}
@keyframes bhc-dot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes bhc-rise{from{opacity:0;transform:translateY(8px)}}
.bhc-cards:empty{display:none}
.bhc-card{position:relative;margin-top:12px;min-width:0}
.bhc-card.is-in{animation:bhc-rise .5s var(--bhc-ease) both}
.bhc-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.bhc-chip{cursor:pointer;font:inherit;text-align:left}
/* Every control in the chat is one full-area target. Children never take the pointer, taps skip the double-tap delay,
   and press or hover feedback moves inner content only, so the hit box never shrinks or shifts under the cursor. */
.bhc button,.bhc a,.bhc summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bhc button,.bhc summary{-webkit-user-select:none;user-select:none}
.bhc button *,.bhc a *,.bhc summary *{pointer-events:none}
.bhc-chip-t{display:inline-block;transition:transform .16s ease}
.bhc-chip:active .bhc-chip-t{transform:translateY(1px) scale(.97)}

.bhc-compose{flex:none;display:flex;align-items:flex-end;gap:8px;margin:0}
.bhc-input{flex:1;min-width:0;display:block;margin:0;resize:none;max-height:120px}
.bhc-send{flex:none;display:grid;place-items:center;padding:0;border:0;cursor:pointer}
.bhc-send:disabled{cursor:default;opacity:.55}
.bhc-foot{flex:none;margin:0;text-align:center}

.bhc-ic{display:inline-block;flex:none;width:16px;height:16px;vertical-align:middle}
.bhc-kicker{margin:0}
.bhc-card-title{margin:0}
.bhc-line{display:flex;align-items:flex-start;gap:8px;margin:7px 0 0}
.bhc-line .bhc-ic{margin-top:2px}
.bhc-note,.bhc-text,.bhc-addr,.bhc-when,.bhc-creds{margin:8px 0 0}
.bhc-when{display:flex;align-items:center;gap:8px}
.bhc-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}

.bhc-ph-row{display:grid;grid-template-columns:repeat(var(--n,2),minmax(0,1fr))}
.bhc-ph-row[data-n="1"]{--n:1}.bhc-ph-row[data-n="3"]{--n:3}
.bhc-ph{display:block;overflow:hidden}
.bhc-ph img,.bhc-thumb img,.bhc-art img,.bhc-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.bhc-salelist,.bhc-teamlist,.bhc-linklist,.bhc-prompts,.bhc-ask{list-style:none;margin:0;padding:0}
.bhc-saleitem{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center}
.bhc-thumb{display:block;width:56px;height:56px;overflow:hidden}
.bhc-saleinfo{display:grid;justify-items:start;gap:4px;min-width:0}
.bhc-small{display:block}

.bhc-cost-in{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.bhc-money{display:flex;align-items:center;min-width:0}
.bhc-money input{width:100%;min-width:0;padding:0;border:0;background:transparent;outline:none;font:inherit;color:inherit}
.bhc-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.bhc-quick button{cursor:pointer;font:inherit}
.bhc-rows{margin:12px 0 0}
.bhc-rows div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.bhc-rows dt,.bhc-rows dd{margin:0}
.bhc-rows dd{font-variant-numeric:tabular-nums;white-space:nowrap}
.bhc-table{width:100%;border-collapse:collapse;margin-top:10px;font-variant-numeric:tabular-nums}
.bhc-table th,.bhc-table td{padding:6px 8px;text-align:left}
.bhc-table th:last-child,.bhc-table td:last-child{text-align:right}
.bhc-bignum{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:8px 0 0}
.bhc-steps{margin:10px 0 0;padding-left:1.25em}
.bhc-steps li{margin:.35em 0}
.bhc-steps--num{list-style:none;padding:0}
.bhc-steps--num li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;margin:12px 0 0}
.bhc-steps--num b{display:block}
.bhc-n{display:grid;place-items:center;width:28px;height:28px;border-radius:50%}
.bhc-stepbody{display:block}

.bhc-map{position:relative;display:block;height:118px;overflow:hidden}
.bhc-map svg{position:absolute;inset:0;width:100%;height:100%}
.bhc-map-road{fill:none;stroke-linecap:round}
.bhc-map-river{fill:none;stroke-linecap:round}
.bhc-map-go{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px}
.bhc-bigtel{display:inline-flex;align-items:center;gap:10px;margin-top:6px}
.bhc-mailrow{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:8px 0 0}
.bhc-mini{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font:inherit;white-space:nowrap}
.bhc-mini .bhc-ic{width:14px;height:14px}

.bhc-person{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:start}
.bhc-mono{display:grid;place-items:center;border-radius:50%}
.bhc-person .bhc-mono{width:52px;height:52px}
.bhc-teamlist li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;padding:8px 0}
.bhc-teamlist li>span:last-child{display:grid;justify-items:start;gap:1px;min-width:0}
.bhc-teamlist .bhc-mono{width:38px;height:38px}
.bhc-confirm{display:inline-block;margin-top:6px}
.bhc-linklist a{display:flex;align-items:center;gap:10px}
.bhc-linklist .bhc-ic--end{margin-left:auto}

.bhc-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:12px 0 0}
.bhc-facts div{min-width:0}
.bhc-facts dt,.bhc-facts dd{margin:0}
.bhc-facts dd{overflow-wrap:break-word}
.bhc-facts div:last-child{grid-column:1/-1}
.bhc a{text-decoration:none}
/* one box per link, so a link that breaks onto a second line has no dead gap between its lines */
.bhc .bhc-a{display:inline-block;max-width:100%;text-decoration:underline}
.bhc-preview{margin-top:12px}
.bhc-preview summary{cursor:pointer}
.bhc-preview p{margin:8px 0 0}
.bhc-quote{margin:12px 0 0}
.bhc-quote blockquote{margin:0}
.bhc-askh{margin:12px 0 0}
.bhc-seclink,.bhc-src{display:inline-flex;align-items:center;gap:6px;margin-top:12px}

.bhc-welcome{display:flex;flex-direction:column}
.bhc-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;text-align:left;cursor:pointer;font:inherit}
.bhc-next-text{display:grid;min-width:0}
.bhc-prompts li button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;cursor:pointer;font:inherit}
.bhc-art{display:flex;align-items:flex-end}
.bhc-art span{display:block;overflow:hidden}

/* Phones: a full-height bottom sheet. The page behind stops scrolling; the conversation scrolls on its own. */
@media (max-width:640px){
  .bhc{--bhc-gap:12px}
  .bhc-panel{left:0;right:0;bottom:auto;top:calc(var(--bhc-vtop,0px) + 10px);width:100%;height:calc(100vh - 10px);height:calc(var(--bhc-vh,100dvh) - 10px);
    border-radius:24px 24px 0 0;transform:translateY(104%);transform-origin:50% 100%;transition:transform .32s cubic-bezier(.4,0,.2,1),opacity .2s ease}
  .bhc.is-open .bhc-panel{transform:none;transition:transform .5s var(--bhc-ease),opacity .2s ease}
  .bhc-grab{display:block;position:absolute;left:50%;top:7px;z-index:2;width:38px;height:4px;margin-left:-19px;border-radius:4px}
  .bhc-head{touch-action:none}
  .bhc-compose{padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
  .bhc-facts{grid-template-columns:1fr}
}
html.bhc-sheet-open,html.bhc-sheet-open body{overflow:hidden!important}
html.bhc-sheet-open #bh-devices{visibility:hidden}

@media (prefers-reduced-motion:reduce){
  .bhc-panel,.bhc.is-open .bhc-panel,.bhc-launch{transition:none!important}
  .bhc-msg,.bhc-card.is-in,.bhc-typing i{animation:none!important}
}

/* lead card (2026-10-14): one gentle ask for an email after the second answer */
.bhc-lead{margin:10px 0 4px 44px;padding:14px 16px 12px;border-radius:16px;background:#F4F7FA;border:1px solid #E6ECF2}
.bhc-lead-t{margin:0 0 2px;font-weight:700;font-size:14px}
.bhc-lead-s{margin:0 0 10px;font-size:13px;color:#61616b}
.bhc-lead-f{display:grid;grid-template-columns:1fr 1.3fr auto;gap:6px}
.bhc-lead-in{font:inherit;font-size:14px;padding:9px 11px;border-radius:10px;border:1px solid #D7DFE7;background:#fff;min-width:0}
.bhc-lead-in:focus{outline:none;border-color:#0E76BC;box-shadow:0 0 0 3px #0E76BC1f}
.bhc-lead-b{font:inherit;font-size:13.5px;font-weight:700;padding:9px 14px;border-radius:10px;border:0;background:#262262;color:#fff;cursor:pointer}
.bhc-lead-ok{margin:0;font-size:13.5px;font-weight:650;color:#0A5530}
@media(max-width:480px){.bhc-lead{margin-left:0}.bhc-lead-f{grid-template-columns:1fr}}

/* intake gate (2026-10-15) */
.bhc-gate{display:grid;gap:8px;margin:10px 14px 4px;padding:16px 16px 14px;border-radius:18px;background:#F4F7FA;border:1px solid #E6ECF2}
.bhc-gate-t{margin:0;font-weight:800;font-size:15px;color:#171722}
.bhc-gate-s{margin:0 0 4px;font-size:13px;color:#61616b;line-height:1.45}
.bhc-gate-in{font:inherit;font-size:15px;padding:11px 13px;border-radius:12px;border:1px solid #D7DFE7;background:#fff;min-width:0;color:#171722}
.bhc-gate-in:focus{outline:none;border-color:#0E76BC;box-shadow:0 0 0 3px #0E76BC1f}
.bhc-gate-err{margin:0;font-size:12.5px;font-weight:650;color:#B3261E}
.bhc-gate-b{font:inherit;font-size:14.5px;font-weight:700;padding:12px 16px;border-radius:12px;border:0;background:#262262;color:#fff;cursor:pointer;margin-top:2px}
.bhc-gated .bhc-compose{opacity:.45;pointer-events:none}
.bhc-gated .bhc-prompts,.bhc-gated .bhc-chips{pointer-events:none;opacity:.6}
