body[data-view] {
  --lh-page-width:min(1760px,calc(100% - 24px));
  padding-bottom:var(--lh-chat-height,30vh);
}
body[data-view] .wrap {width:var(--lh-page-width);}
body[data-view] .consult-arrival {bottom:calc(var(--lh-chat-height,30vh) + var(--lh-keyboard,0px) + 8px);}
@media(min-width:960px) {
  body[data-view] .site-layout {grid-template-columns:clamp(258px,20vw,316px) minmax(0,1fr);gap:16px;}
  body[data-view] .top {min-height:58px;padding-block:6px;}
  body[data-view] .community-nav .nav {padding-block:4px;}
}
@media(max-width:760px) {body[data-view] {--lh-page-width:calc(100% - 12px);}}
body[data-view] .home-sticky-chat {
  position:fixed; inset-inline:0; bottom:var(--lh-keyboard,0px); z-index:19;
  box-sizing:border-box; width:var(--lh-page-width);
  display:flex; flex-direction:column; min-width:0; margin:0 auto; padding:7px 14px max(7px,env(safe-area-inset-bottom));
  max-height:var(--lh-chat-limit,30vh); overflow:hidden; background:#414f60;
  box-shadow:0 -3px 15px #17233266; overflow-anchor:none;
}
body[data-view] .home-sticky-chat .section-title { flex:none; gap:6px 12px; margin:0 0 6px; flex-wrap:nowrap; }
body[data-view] .home-sticky-chat .section-title>div {min-width:0;flex:1;}
body[data-view] .home-sticky-chat .section-title h2 {font-size:19px;margin:0;}
body[data-view] .home-sticky-chat .chat-status {font-size:11px;white-space:normal;text-align:right;overflow-wrap:anywhere;}
body[data-view] .home-sticky-chat .home-chat-toggle {flex:none; min-height:32px; white-space:nowrap;}
body[data-view] .home-chat-body {min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin;}
body[data-view] .home-chat-body[hidden],body[data-view] .home-chat-toggle[hidden]{display:none!important;}
body[data-view] .home-sticky-chat.is-collapsed .section-title {margin-bottom:0;}
body[data-view="home"] .home-sticky-chat {--lh-chat-history-max:244px;}
body[data-view] .home-sticky-chat .chat-messages {height:clamp(48px,calc(var(--lh-chat-limit,30vh) - 166px),var(--lh-chat-history-max,110px));min-height:0;flex:none;}
body[data-view] .home-sticky-chat .chat-line {grid-template-columns:48px minmax(65px,145px) minmax(0,1fr);gap:4px 8px;padding:3px 0;}
body[data-view] .home-sticky-chat .chat-time {grid-column:1;grid-row:1;text-align:left;}
body[data-view] .home-sticky-chat .chat-name {grid-column:2;grid-row:1;}
body[data-view] .home-sticky-chat .chat-content {grid-column:3;grid-row:1;}
body[data-view] .home-sticky-chat .chat-form {grid-template-columns:minmax(75px,130px) minmax(0,1fr) 80px;gap:8px;}
body[data-view] .home-sticky-chat .chat-form label:first-child {grid-column:auto;}
body[data-view] .home-sticky-chat .chat-form input {min-width:0;width:100%;}
body[data-view] .home-sticky-chat .chat-picker {max-height:180px;}
@media(min-width:960px){
  body[data-view] .chat-sidebar {top:var(--lh-sidebar-top,var(--header-offset,142px));max-height:var(--lh-side-limit,55vh);}
  body[data-view].lh-chat-short .chat-sidebar {position:static;max-height:none;overflow:visible;}
}
@media(max-width:760px){
  body[data-view] .home-sticky-chat {padding:6px 9px max(6px,env(safe-area-inset-bottom));}
  body[data-view] .home-sticky-chat .section-title h2 {font-size:16px;}
  body[data-view] .home-sticky-chat .eyebrow {display:none;}
  body[data-view] .home-sticky-chat .chat-line {grid-template-columns:36px minmax(42px,76px) minmax(0,1fr);gap:4px;}
  body[data-view] .home-sticky-chat .chat-form {grid-template-columns:76px minmax(0,1fr) 55px;gap:5px;}
  body[data-view] .home-sticky-chat .chat-form input,body[data-view] .home-sticky-chat .chat-form button {min-height:34px;font-size:12px;padding:5px;}
  body[data-view] .home-sticky-chat .chat-tools {gap:5px;margin-top:4px;}
  body[data-view] .home-sticky-chat .chat-bottom {margin-top:4px;}
}
@media(max-width:360px){
  body[data-view="home"] .home-chat-body > p.tiny {margin-block:4px;}
}
/* A very short screen gets a compact heading; users can still open and scroll its contents. */
@media(max-height:440px){body[data-view] .home-sticky-chat .eyebrow{display:none;}}
