.b24-widget-button-wrapper,.b24-widget-button-popup,.b24-widget-button-position-bottom-right{display:none!important}#anhel-ai-chat{position:fixed;z-index:100000;right:22px;bottom:22px;font:14px/1.4 Arial,sans-serif;color:#222}.aai-launch{width:58px;height:58px;border:0;border-radius:50%;background:#1d4b9f;color:#fff;font-size:25px;box-shadow:0 8px 28px #0003;cursor:pointer}.aai-panel{display:none;position:absolute;right:0;bottom:70px;width:370px;height:min(570px,calc(100vh - 110px));background:#fff;border-radius:18px;box-shadow:0 18px 60px #0004;overflow:hidden;grid-template-rows:auto 1fr auto auto}.aai-panel.open{display:grid}.aai-panel header{background:#1d4b9f;color:#fff;padding:15px 17px;display:flex;align-items:center;justify-content:space-between}.aai-panel header span{display:grid}.aai-panel header small{opacity:.85}.aai-close{border:0;background:none;color:#fff;font-size:28px;cursor:pointer}.aai-feed{padding:14px;overflow:auto;overscroll-behavior:contain;background:#f5f7fa;display:flex;flex-direction:column;gap:9px}.aai-msg{max-width:86%;padding:9px 11px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px 2px #0000000d}.aai-msg.assistant,.aai-msg.operator{background:#fff;align-self:flex-start}.aai-msg.user{background:#d9ecff;align-self:flex-end}.aai-msg.user.pending{opacity:.7}.aai-msg.user.failed{background:#ffe1e1;opacity:1}.aai-msg.system{font-size:12px;color:#666;align-self:center;background:transparent;text-align:center;box-shadow:none}.aai-typing{display:flex;gap:4px;align-items:center;min-width:40px;height:20px}.aai-typing i{width:6px;height:6px;border-radius:50%;background:#8d99a8;animation:aaiTyping 1.15s infinite ease-in-out}.aai-typing i:nth-child(2){animation-delay:.15s}.aai-typing i:nth-child(3){animation-delay:.3s}@keyframes aaiTyping{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}.aai-panel form{display:flex;gap:8px;padding:10px;border-top:1px solid #e7eaf0;background:#fff}.aai-panel textarea{flex:1;min-width:0;resize:none;border:1px solid #ccd3dc;border-radius:12px;padding:10px;font:inherit}.aai-panel textarea:focus{outline:2px solid #1d4b9f33;border-color:#1d4b9f}.aai-panel form button{width:42px;flex:0 0 42px;border:0;border-radius:12px;background:#1d4b9f;color:#fff;font-size:20px}.aai-panel form button:disabled{opacity:.7}
.aai-panel footer{font-size:10px;color:#7d8490;text-align:center;padding:0 8px 8px;background:#fff}
.aai-msg.assistant:has(.aai-cards){max-width:96%}.aai-cards{display:grid;gap:8px;margin-top:10px}.aai-card{display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;align-items:center;padding:8px;border:1px solid #dfe5ee;border-radius:12px;background:#fff;color:#20242a!important;text-decoration:none!important;transition:border-color .15s,box-shadow .15s}.aai-card:hover{border-color:#1d4b9f;box-shadow:0 3px 12px #1d4b9f1f}.aai-card img{width:62px;height:62px;object-fit:contain;border-radius:8px;background:#f7f8fa}.aai-card-body{min-width:0;display:grid;gap:6px}.aai-card-body b{font-size:12px;line-height:1.25;font-weight:600}.aai-card-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.aai-card-meta strong{font-size:14px;color:#1d4b9f}.aai-card-meta em{font-size:11px;color:#637083;font-style:normal}.aai-card:after{content:'Открыть';font-size:11px;color:#1d4b9f;grid-column:2}
.aai-retry{display:flex;align-items:center;gap:9px}.aai-retry button{border:0;border-radius:9px;background:#1d4b9f;color:#fff;padding:7px 12px;font:600 13px Arial,sans-serif;cursor:pointer}
@media(max-width:600px){#anhel-ai-chat{right:12px;bottom:calc(76px + env(safe-area-inset-bottom))}.aai-panel{position:fixed;inset:0;width:auto;height:100vh;height:100dvh;border-radius:0}.aai-panel header{padding-top:max(15px,env(safe-area-inset-top));}.aai-panel form{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.aai-panel footer{padding-bottom:max(8px,env(safe-area-inset-bottom))}.aai-launch{width:54px;height:54px}}

/* Approved Anhel assistant, v2 + native brand mark. One greeting per tab session. */
#anhel-ai-chat .aai-launch{position:relative;display:grid;place-items:center;width:64px;height:64px;padding:0;line-height:1;isolation:isolate;overflow:visible}
#anhel-ai-chat .aai-robot{display:block;width:60px;height:60px;overflow:visible}
#anhel-ai-chat .aai-tag{position:absolute;bottom:-8px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff;color:#1d4b9f;border:2px solid #eef4ff;border-radius:12px;font:800 10px/16px Arial,sans-serif;padding:0 6px;box-shadow:0 2px 7px #17376616;pointer-events:none}
#anhel-ai-chat .aai-launch:focus-visible{outline:3px solid #61e5df;outline-offset:5px}
#anhel-ai-chat .aai-panel{bottom:84px}
#anhel-ai-chat .aai-greeting{position:absolute;right:0;bottom:84px;width:220px;max-width:calc(100vw - 48px);padding:14px 18px;border-radius:16px 16px 2px 16px;background:#fff;color:#142c50;box-shadow:0 8px 30px #17376624;font:600 14px/1.4 Arial,sans-serif;opacity:0;visibility:hidden;pointer-events:none}
#anhel-ai-chat .aai-wave{transform-origin:67px 53px}
#anhel-ai-chat .aai-bot{transform-origin:45px 55px}
#anhel-ai-chat.aai-greet .aai-wave{animation:aaiWave 7s ease-in-out 1}
#anhel-ai-chat.aai-greet .aai-bot{animation:aaiNod 7s ease-in-out 1}
#anhel-ai-chat.aai-greet .aai-spark{animation:aaiSpark 7s ease-in-out 1}
#anhel-ai-chat.aai-greet .aai-greeting{visibility:visible;animation:aaiGreet 7s ease-in-out 1}
@keyframes aaiWave{0%,12%,43%,100%{transform:rotate(0)}18%,30%{transform:rotate(-16deg)}24%,36%{transform:rotate(12deg)}}
@keyframes aaiNod{0%,9%,47%,100%{transform:translateY(0) rotate(0)}15%{transform:translateY(-3px) rotate(-4deg)}35%{transform:translateY(0) rotate(1deg)}}
@keyframes aaiSpark{0%,12%,50%,100%{opacity:.5;transform:scale(.9)}25%{opacity:1;transform:scale(1)}}
@keyframes aaiGreet{0%,7%{opacity:0;transform:translateY(8px)}16%,78%{opacity:1;transform:translateY(0)}90%,100%{opacity:0;transform:translateY(4px)}}
@media(max-width:600px){#anhel-ai-chat{right:24px}#anhel-ai-chat .aai-launch{width:60px;height:60px}#anhel-ai-chat .aai-robot{width:56px;height:56px}#anhel-ai-chat .aai-panel{bottom:0}}
@media(prefers-reduced-motion:reduce){#anhel-ai-chat .aai-wave,#anhel-ai-chat .aai-bot,#anhel-ai-chat .aai-spark,#anhel-ai-chat .aai-greeting{animation:none!important}#anhel-ai-chat .aai-greeting{display:none}}

/* User revision: double size, move away from the corner, clearly blue label. */
#anhel-ai-chat{right:44px;bottom:44px}
#anhel-ai-chat .aai-launch{width:128px;height:128px}
#anhel-ai-chat .aai-robot{width:120px;height:120px}
#anhel-ai-chat .aai-tag{bottom:-12px;color:#1665d8;font-size:18px;line-height:24px;padding:2px 9px;border-radius:15px}
#anhel-ai-chat .aai-greeting{bottom:160px}
#anhel-ai-chat .aai-panel{bottom:160px;height:min(570px,var(--aai-panel-space,calc(100vh - 220px)))}
@media(max-width:600px){#anhel-ai-chat{right:36px;bottom:calc(100px + env(safe-area-inset-bottom))}#anhel-ai-chat .aai-launch{width:120px;height:120px}#anhel-ai-chat .aai-robot{width:112px;height:112px}#anhel-ai-chat .aai-tag{font-size:16px;line-height:22px}#anhel-ai-chat .aai-panel{bottom:0;height:100vh;height:100dvh}}

/* Dismissible mascot, larger label, smaller mobile robot. */
#anhel-ai-chat{bottom:64px;pointer-events:none}
#anhel-ai-chat .aai-mascot{position:relative;width:128px;height:128px;pointer-events:auto;transition:transform .42s cubic-bezier(.4,0,.2,1),opacity .32s ease;transform:translateX(0);opacity:1}
#anhel-ai-chat.aai-stowed .aai-mascot{transform:translateX(calc(100% + 320px)) rotate(8deg);opacity:0;pointer-events:none}
#anhel-ai-chat .aai-panel{pointer-events:auto}
#anhel-ai-chat .aai-tag{left:auto;right:-16px;transform:none;bottom:-38px;font-size:36px;line-height:42px;padding:3px 10px;border-radius:18px;color:#1665d8}
#anhel-ai-chat .aai-hide{position:absolute;right:-8px;top:-12px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #c9d8ee;border-radius:50%;background:#fff;color:#42638f;box-shadow:0 2px 8px #17376620;font:25px/1 Arial,sans-serif;cursor:pointer}
#anhel-ai-chat .aai-hide:hover{background:#eaf2ff;color:#1d4b9f}
#anhel-ai-chat .aai-hide:focus-visible,#anhel-ai-chat .aai-restore:focus-visible{outline:3px solid #61e5df;outline-offset:3px}
#anhel-ai-chat .aai-restore{position:absolute;right:-44px;bottom:24px;display:flex;align-items:center;justify-content:center;gap:3px;width:48px;height:58px;padding:0 4px 0 1px;border:1px solid #b8ccea;border-right:0;border-radius:16px 0 0 16px;background:#fff;color:#1665d8;box-shadow:-3px 3px 14px #17376620;font:700 16px/1 Arial,sans-serif;cursor:pointer;pointer-events:auto}
#anhel-ai-chat .aai-restore>span{font-size:29px;font-weight:400}
#anhel-ai-chat .aai-restore[hidden]{display:none}
@media(max-width:600px){#anhel-ai-chat{bottom:calc(116px + env(safe-area-inset-bottom))}#anhel-ai-chat .aai-mascot,#anhel-ai-chat .aai-launch{width:80px;height:80px}#anhel-ai-chat .aai-robot{width:74.6667px;height:74.6667px}#anhel-ai-chat .aai-tag{font-size:32px;line-height:38px}#anhel-ai-chat .aai-hide{right:-10px;top:-14px}#anhel-ai-chat .aai-restore{right:-36px;bottom:12px}#anhel-ai-chat .aai-greeting{bottom:114px}}
@media(prefers-reduced-motion:reduce){#anhel-ai-chat .aai-mascot{transition:none}}

/* Clarification: enlarge the greeting, not the name badge. Keep exit within viewport. */
#anhel-ai-chat{--aai-edge:44px;width:128px;height:128px}
#anhel-ai-chat .aai-mascot-clip{position:absolute;inset:-240px calc(-1 * var(--aai-edge)) -80px -340px;overflow:hidden;pointer-events:none}
#anhel-ai-chat .aai-mascot{position:absolute;right:var(--aai-edge);bottom:80px}
#anhel-ai-chat .aai-tag{font-size:18px;line-height:24px;bottom:-12px;left:50%;right:auto;transform:translateX(-50%);padding:2px 9px;border-radius:15px}
#anhel-ai-chat .aai-greeting{width:330px;max-width:calc(100vw - 80px);font-size:28px;line-height:1.3;padding:17px 20px}
@media(max-width:600px){#anhel-ai-chat{--aai-edge:36px;width:80px;height:80px}#anhel-ai-chat .aai-tag{font-size:12px;line-height:18px;padding:1px 6px;bottom:-9px}#anhel-ai-chat .aai-greeting{width:320px;max-width:calc(100vw - 56px);font-size:28px;line-height:1.3;padding:16px 18px}}

/* Return tab uses the same robot instead of the letters ИИ. */
#anhel-ai-chat .aai-restore .aai-robot-mini{width:28px;height:28px;border-radius:50%;background:#1d4b9f;flex:none}
#anhel-ai-chat.aai-stowed .aai-restore .aai-wave{animation:aaiTabWave 2.6s ease-in-out 1}
@keyframes aaiTabWave{0%,12%,90%,100%{transform:rotate(0)}25%,55%{transform:rotate(-16deg)}40%,70%{transform:rotate(12deg)}}

#anhel-ai-chat .aai-greeting{color:#1665d8}

#anhel-ai-chat [hidden]{display:none!important}#anhel-ai-chat .aai-support{padding:10px 12px;border-bottom:1px solid #e0e6ef;display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}#anhel-ai-chat .aai-support-status{display:block;flex-basis:100%;font-size:12px;line-height:1.4;color:#51627a}#anhel-ai-chat .aai-support button{border:1px solid #b6cbe8;border-radius:6px;background:#f1f6fe;color:#19498e;padding:7px 9px;cursor:pointer;font-size:12px}#anhel-ai-chat form.aai-contact-form{display:block!important;padding:12px;overflow:auto;max-height:240px;flex-shrink:0;background:#f5f8fc}#anhel-ai-chat form.aai-contact-form[hidden]{display:none!important}#anhel-ai-chat .aai-contact-form label{display:block;font-size:12px;margin:0 0 8px}#anhel-ai-chat .aai-contact-form input:not([type=checkbox]){display:block;box-sizing:border-box;width:100%;height:34px;border:1px solid #b8c8dd;border-radius:5px;background:#fff;padding:6px;color:#222}#anhel-ai-chat .aai-contact-form .aai-contact-consent{display:flex;gap:6px;line-height:1.3}#anhel-ai-chat .aai-contact-consent input{appearance:auto;opacity:1;position:static;width:16px;height:16px;flex-shrink:0}#anhel-ai-chat .aai-contact-form button{width:auto;height:auto;padding:8px 12px;border-radius:6px;font-size:13px}#anhel-ai-chat .aai-contact-result{display:block;font-size:12px;color:#a32929}#anhel-ai-chat .aai-msg.operator{background:#e9f6ed;border:1px solid #b6d7bd}#anhel-ai-chat .aai-panel{overflow-y:auto}#anhel-ai-chat .aai-feed{min-height:90px}

#anhel-ai-chat .aai-panel.open{display:flex;flex-direction:column}#anhel-ai-chat .aai-panel>header,#anhel-ai-chat .aai-panel>form,#anhel-ai-chat .aai-panel>footer{flex-shrink:0}#anhel-ai-chat .aai-feed{flex:1 1 0;min-height:90px}#anhel-ai-chat .aai-support{align-content:flex-start;align-items:center}#anhel-ai-chat .aai-support button{height:auto;min-height:34px;line-height:18px;flex:0 0 auto}

#anhel-ai-chat .aai-restart{margin:8px 14px;padding:10px 14px;border:1px solid #234da4;border-radius:10px;background:#f2f6ff;color:#234da4;font:inherit;font-size:13px;cursor:pointer}#anhel-ai-chat .aai-restart[hidden]{display:none}

/* Compact greeting on phones/tablets; desktop and chat controls unchanged. */
@media(max-width:991px){#anhel-ai-chat .aai-greeting{box-sizing:border-box;width:220px;max-width:calc(100vw - 56px);font-size:16px;line-height:1.3;padding:10px 12px;border-radius:12px 12px 2px 12px}}
