.brl-chat-launch,.brl-chat-panel{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:var(--brl-chat-clearance,124px);z-index:35}
.brl-chat-launch,.brl-chat-head{display:flex;align-items:center;gap:10px;background:var(--ink);color:#fff;text-align:left}
.brl-chat-launch{padding:7px 14px 7px 7px;border:1px solid var(--hi);border-radius:28px;box-shadow:0 8px 28px #0d22383b;cursor:pointer}
.brl-chat-launch:hover{box-shadow:0 8px 28px #0d22386b}
.brl-chat-launch img,.brl-chat-head img{width:42px;height:42px;border:2px solid var(--hi);border-radius:50%;object-fit:cover}
.brl-chat-launch small,.brl-chat-head small{display:block;font-size:.75rem}
.brl-chat-panel{display:flex;flex-direction:column;width:min(430px,calc(100% - max(12px,env(safe-area-inset-right)) - max(12px,env(safe-area-inset-left))));height:min(660px,calc(100dvh - var(--brl-chat-clearance,124px) - 8px));margin:0;padding:0;border:0;border-radius:18px;overflow:hidden;background:#fff;color:var(--ink);box-shadow:0 16px 44px #0d22384d}
.brl-chat-panel[hidden],.brl-chat-launch[hidden]{display:none}
.brl-chat-head{flex-shrink:0;padding:14px 16px;border-bottom:2px solid var(--hi)}
.brl-chat-head h2{font-size:1.15rem;line-height:1.2;margin:0;color:#fff}
.brl-chat-close{margin-left:auto;background:transparent;color:#fff;border:0;min-width:36px;min-height:36px;font-size:1.5rem;cursor:pointer}
.brl-chat-content{flex:1;padding:16px;overflow:auto;min-height:0}
.brl-chat-log{display:grid;gap:8px}
.brl-chat-log p{padding:8px 11px;background:#edf1f5;border-radius:11px;margin:0;overflow-wrap:anywhere}
.brl-chat-log .brl-chat-you{margin-left:20px;background:#fff3b4}
.brl-chat-topics{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.brl-chat-topics button,.brl-chat-panel a{color:var(--ink)}
.brl-chat-topics button{background:#fff;border:1px solid #aebac5;border-radius:15px;padding:5px 10px;cursor:pointer}
.brl-chat-content a{display:inline-block;margin-top:6px;text-decoration:underline;font-weight:700}
.brl-chat-form{display:flex;flex-shrink:0;gap:6px;padding:12px 16px;border-top:1px solid var(--line)}
.brl-chat-form input{min-width:0;flex:1;border:1px solid #aebac5;border-radius:9px;padding:7px 9px;background:#fff;color:var(--ink);font:inherit}
.brl-chat-form button{border:0;border-radius:9px;background:var(--hi);color:var(--ink);padding:0 12px;font-weight:700;cursor:pointer}
@media(min-width:1250px){.brl-chat-launch{bottom:calc(20px + env(safe-area-inset-bottom))}}
@media(max-width:560px){
  .brl-chat-launch,.brl-chat-panel{bottom:calc(var(--brl-chat-clearance,124px) + 16px)}
  .brl-chat-panel{height:min(660px,calc(100dvh - var(--brl-chat-clearance,124px) - 24px))}
}
