/* راهنمای هوشمند آلا — Concept C, RTL drawer. Does not move the wizard launcher. */
.ala-help-root{position:relative;z-index:9100;font-family:DanaFaNum,Vazirmatn,Tahoma,"Segoe UI",sans-serif;color:#06202D;direction:rtl}
.ala-help-dock{flex:0 0 auto;width:100%;padding:4px 6px 6px;box-sizing:border-box;z-index:50}
.ala-help-fab{position:relative!important;left:auto;right:auto;bottom:auto;top:auto;z-index:50;display:flex;align-items:center;gap:8px;width:100%;padding:7px 12px 7px 8px;border-radius:12px;border:1px solid #D3E3E0;background:#fff;color:#06202D;box-shadow:none;cursor:pointer;margin:0;direction:rtl;font:inherit;line-height:1.2;box-sizing:border-box}
.ala-help-fab:hover,.ala-help-fab:focus-visible{border-color:#077672;background:#F7FFFC;outline:none}
.ala-help-fab .ic{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#32D7AA,#077672);color:#fff;flex:0 0 28px}
.ala-help-fab .ic svg{width:16px;height:16px;display:block}
.ala-help-fab b{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ala-help-dock.is-narrow{padding:4px 2px 6px;display:flex;justify-content:center}
.ala-help-dock.is-narrow .ala-help-fab{width:auto;padding:6px;border-radius:999px}
.ala-help-dock.is-narrow .ala-help-fab b{display:none}
.ala-help-fab[hidden],
.ala-help-root.is-open .ala-help-fab,
.ala-help-root.is-wizard .ala-help-fab,
body.ala-help-open .ala-help-fab,
body.ala-help-wizard .ala-help-fab{display:none!important}
.ala-help-mini{display:none;position:fixed!important;top:auto;right:auto;bottom:max(20px, env(safe-area-inset-bottom, 0px));left:max(16px, env(safe-area-inset-left, 0px));z-index:9100;width:44px;height:44px;padding:0;border:1px solid #D3E3E0;border-radius:50%;background:#fff;color:#fff;box-shadow:0 8px 24px -8px rgba(6,32,45,.35);cursor:pointer;margin:0;place-items:center}
.ala-help-mini .ic{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#32D7AA,#077672);color:#fff}
.ala-help-mini .ic svg{width:22px;height:22px;display:block}
.ala-help-mini:hover,.ala-help-mini:focus-visible{border-color:#077672;outline:none}
@media (max-width:767px){
  .ala-help-mini{display:grid;top:auto;right:auto;bottom:20px;left:16px;width:44px;height:44px}
  .ala-help-mini.is-above-composer{bottom:84px}
}
.ala-help-mini[hidden],
.ala-help-root.is-open .ala-help-mini,
.ala-help-root.is-wizard .ala-help-mini,
body.ala-help-open .ala-help-mini,
body.ala-help-wizard .ala-help-mini{display:none!important}
.ala-help-scrim{position:fixed;inset:0;background:rgba(6,32,45,.28);z-index:9190;border:0;padding:0;margin:0;cursor:pointer}
.ala-help-scrim[hidden]{display:none!important}
.ala-help-drawer{position:fixed;top:0;bottom:0;left:0;right:auto;width:min(400px,100vw);max-width:100%;background:#F7FFFC;color:#06202D;z-index:9200;display:flex;flex-direction:column;box-shadow:8px 0 32px -12px rgba(6,32,45,.4);transform:translateX(-110%);transition:transform .22s ease;padding:env(safe-area-inset-top,0) 0 env(safe-area-inset-bottom,0) env(safe-area-inset-left,0)}
.ala-help-root.is-open .ala-help-drawer{transform:none}
.ala-help-top{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #D3E3E0;flex:0 0 auto}
.ala-help-top .mark{width:36px;height:36px;border-radius:10px;background:linear-gradient(180deg,#32D7AA,#077672);display:grid;place-items:center;color:#fff;flex:0 0 36px}
.ala-help-top .mark svg{width:22px;height:22px}
.ala-help-top .ttl{display:flex;flex-direction:column;gap:2px;min-width:0}
.ala-help-top .ttl b{font-size:15px;font-weight:700}
.ala-help-top .ttl small{font-size:11px;opacity:.7}
.ala-help-top .sp{flex:1}
.ala-help-x{width:36px;height:36px;border:0;background:transparent;color:inherit;border-radius:8px;cursor:pointer;font-size:20px;line-height:1}
.ala-help-x:hover,.ala-help-x:focus-visible{background:rgba(7,118,114,.1);outline:none}
.ala-help-thread{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.ala-help-msg{max-width:92%;padding:10px 12px;border-radius:14px;font-size:13.5px;line-height:1.7;white-space:pre-wrap;word-break:break-word}
.ala-help-msg.bot{align-self:flex-start;background:#fff;border:1px solid #D3E3E0;border-bottom-right-radius:4px}
.ala-help-msg.user{align-self:flex-end;background:#077672;color:#fff;border-bottom-left-radius:4px}
.ala-help-msg.err{background:#FFF6F4;border-color:#F0C2BA;color:#7A2E24}
.ala-help-cites{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 6px}
.ala-help-cites span{font-size:11px;background:#E8FFF7;border:1px solid #D3E3E0;border-radius:999px;padding:2px 8px;color:#077672}
.ala-help-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px;flex:0 0 auto}
.ala-help-chips button{font:inherit;font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid #D3E3E0;background:#fff;color:#06202D;cursor:pointer}
.ala-help-chips button:hover,.ala-help-chips button:focus-visible{border-color:#077672;color:#077672;outline:none}
.ala-help-form{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid #D3E3E0;background:#fff;flex:0 0 auto}
.ala-help-form textarea{flex:1;resize:none;min-height:40px;max-height:96px;border:1px solid #D3E3E0;border-radius:12px;padding:8px 10px;font:inherit;font-size:13.5px;background:#F7FFFC;color:#06202D}
.ala-help-form textarea:focus{outline:none;border-color:#077672}
.ala-help-send{width:40px;height:40px;border:0;border-radius:12px;background:#077672;color:#fff;cursor:pointer;flex:0 0 40px}
.ala-help-send:disabled{opacity:.45;cursor:default}
.ala-help-send svg{width:18px;height:18px;display:block;margin:auto}
.ala-help-pend{font-size:12px;opacity:.65;padding:0 4px}
html.dark .ala-help-fab,html[data-theme=dark] .ala-help-fab,body.dark .ala-help-fab,html.dark .ala-help-mini,html[data-theme=dark] .ala-help-mini,body.dark .ala-help-mini{background:#0E3C4A;border-color:#1E5666;color:#E8FFF7}
html.dark .ala-help-drawer,html[data-theme=dark] .ala-help-drawer,body.dark .ala-help-drawer{background:#06202D;color:#E8FFF7;box-shadow:8px 0 32px -12px rgba(0,0,0,.55)}
html.dark .ala-help-top,html[data-theme=dark] .ala-help-top,body.dark .ala-help-top,html.dark .ala-help-form,html[data-theme=dark] .ala-help-form,body.dark .ala-help-form{border-color:#1E5666;background:#0B2A36}
html.dark .ala-help-msg.bot,html[data-theme=dark] .ala-help-msg.bot,body.dark .ala-help-msg.bot,html.dark .ala-help-chips button,html[data-theme=dark] .ala-help-chips button,body.dark .ala-help-chips button,html.dark .ala-help-form textarea,html[data-theme=dark] .ala-help-form textarea,body.dark .ala-help-form textarea{background:#0E3C4A;border-color:#1E5666;color:#E8FFF7}
html.dark .ala-help-msg.user,html[data-theme=dark] .ala-help-msg.user,body.dark .ala-help-msg.user,html.dark .ala-help-send,html[data-theme=dark] .ala-help-send,body.dark .ala-help-send{background:#32D7AA;color:#06202D}
html.dark .ala-help-cites span,html[data-theme=dark] .ala-help-cites span,body.dark .ala-help-cites span{background:#0E3C4A;border-color:#1E5666;color:#7CF2D0}
@media (max-width:640px){
  .ala-help-drawer{width:100vw}
}
@media (max-width:767px){
  html.dark .ala-help-mini,html[data-theme=dark] .ala-help-mini,body.dark .ala-help-mini{background:#0E3C4A;border-color:#1E5666}
}
@media (prefers-reduced-motion:reduce){
  .ala-help-drawer{transition:none}
}

/* راهنمای کمرنگ داخل فیلد پیام راهنمای آلا */
.ala-help-form textarea::placeholder {
  color: rgba(15, 42, 50, 0.38);
  opacity: 1;
  font-weight: 400;
}
html.dark .ala-help-form textarea::placeholder,
html[data-theme="dark"] .ala-help-form textarea::placeholder,
body.dark .ala-help-form textarea::placeholder {
  color: rgba(226, 242, 240, 0.36);
  opacity: 1;
  font-weight: 400;
}
