.bm-assistant-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 30px;
    background: #23734a;
    box-shadow: 0 8px 26px rgba(22, 54, 35, .25);
    color: #fff;
    cursor: pointer;
    font: 700 14px/1.2 "Segoe UI", Arial, sans-serif;
}

.bm-assistant-launcher:hover { background: #185b39; }
.bm-assistant-launcher-mark { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 12px; }

.bm-assistant-panel {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 1101;
    display: flex;
    width: min(390px, calc(100vw - 28px));
    height: min(570px, calc(100vh - 120px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e9e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 55px rgba(18, 38, 25, .2);
    color: #17241d;
    font: 14px/1.5 "Segoe UI", Arial, sans-serif;
}

.bm-assistant-panel[hidden] { display: none !important; }
.bm-assistant-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 17px; background: #1d603d; color: white; }
.bm-assistant-heading { display: flex; align-items: center; gap: 10px; }
.bm-assistant-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(255,255,255,.15); font-weight: 800; }
.bm-assistant-header strong { display: block; font-size: 14px; }
.bm-assistant-header small { display: block; color: #d3e6d9; font-size: 11px; }
.bm-assistant-close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: white; cursor: pointer; font-size: 22px; }
.bm-assistant-close:hover { background: rgba(255,255,255,.14); }
.bm-assistant-log { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; }
.bm-assistant-message { max-width: 90%; margin: 0; padding: 10px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bm-assistant-bot { align-self: flex-start; background: #f0f5f1; }
.bm-assistant-user { align-self: flex-end; background: #23734a; color: white; }
.bm-assistant-help { margin: 0; padding: 0 16px 10px; color: #6d7b72; font-size: 11px; }
.bm-assistant-help a { color: #23734a; font-weight: 700; }
.bm-assistant-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e9eee9; }
.bm-assistant-form input { min-width: 0; min-height: 42px; flex: 1; padding: 9px 11px; border: 1px solid #dce4dd; border-radius: 9px; font: inherit; outline: none; }
.bm-assistant-form input:focus { border-color: #5da77b; box-shadow: 0 0 0 3px rgba(49, 132, 82, .12); }
.bm-assistant-form button { min-width: 68px; border: 0; border-radius: 9px; background: #23734a; color: white; cursor: pointer; font: 700 13px "Segoe UI", Arial, sans-serif; }
.bm-assistant-form button:hover { background: #185b39; }
.bm-assistant-form button:disabled { opacity: .6; cursor: wait; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 500px) {
    .bm-assistant-launcher { right: 14px; bottom: 15px; min-height: 49px; padding: 0 14px; }
    .bm-assistant-panel { right: 10px; bottom: 73px; width: calc(100vw - 20px); height: min(570px, calc(100vh - 94px)); }
}
