/* Aluleth Assistant */
.ala{--ala-ink:#0B0C0F;--ala-accent:#FF6A1F;--ala-line:#E3E5EA;--ala-cloud:#F3F4F6;--ala-slate:#5C616D;position:fixed;right:20px;bottom:20px;z-index:99990;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;color:var(--ala-ink)}
.ala *{box-sizing:border-box}
.ala-launcher{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;background:var(--ala-accent);color:var(--ala-ink);box-shadow:0 12px 30px -8px rgba(255,106,31,.6),0 4px 12px rgba(11,12,15,.18);transition:transform .25s cubic-bezier(.2,.7,.2,1),background .2s;margin-left:auto}
.ala-launcher:hover{transform:scale(1.06)}
.ala.is-open .ala-launcher{background:var(--ala-ink);color:#fff}
.ala-launcher:focus-visible,.ala button:focus-visible,.ala input:focus-visible,.ala textarea:focus-visible,.ala a:focus-visible{outline:2px solid var(--ala-accent);outline-offset:2px}
.ala-panel{position:absolute;right:0;bottom:76px;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100vh - 120px));display:flex;flex-direction:column;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 30px 70px -20px rgba(11,12,15,.45),0 0 0 1px rgba(11,12,15,.06);animation:ala-in .28s cubic-bezier(.2,.7,.2,1)}
.ala-panel[hidden]{display:none}
@keyframes ala-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.ala-head{display:flex;align-items:center;gap:.75rem;padding:1rem 1rem 1rem 1.1rem;background:var(--ala-ink);color:#fff}
.ala-logo{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(255,106,31,.14);color:var(--ala-accent);flex:none}
.ala-titles{display:flex;flex-direction:column;flex:1;min-width:0}
.ala-titles strong{font-family:"Inter Tight",Inter,sans-serif;font-size:1.02rem;letter-spacing:-.01em}
.ala-status{font-size:.78rem;color:#B9BDC6;display:flex;align-items:center;gap:.4rem}
.ala-status::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ala-accent);box-shadow:0 0 0 3px rgba(255,106,31,.25)}
.ala-close{background:rgba(255,255,255,.08);border:0;color:#fff;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;cursor:pointer}
.ala-close:hover{background:rgba(255,255,255,.16)}
.ala-log{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;background:var(--ala-cloud);overscroll-behavior:contain}
.ala-msg{max-width:86%;padding:.7rem .9rem;border-radius:16px;font-size:.92rem;word-wrap:break-word}
.ala-msg p{margin:0}.ala-msg p+p{margin-top:.5rem}
.ala-assistant{align-self:flex-start;background:#fff;border:1px solid var(--ala-line);border-bottom-left-radius:6px}
.ala-user{align-self:flex-end;background:var(--ala-ink);color:#fff;border-bottom-right-radius:6px}
.ala-msg a{color:#C2410C;font-weight:500;word-break:break-word}
.ala-user a{color:#FFB27A}
.ala-more{display:inline-block;margin-top:.45rem;font-size:.85rem;text-decoration:none}
.ala-typing{display:flex;gap:4px;padding:.85rem 1rem}
.ala-typing span{width:7px;height:7px;border-radius:50%;background:#A3A8B3;animation:ala-dot 1s infinite ease-in-out}
.ala-typing span:nth-child(2){animation-delay:.15s}.ala-typing span:nth-child(3){animation-delay:.3s}
@keyframes ala-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.ala-chips{display:flex;gap:.4rem;overflow-x:auto;padding:.6rem .8rem;background:#fff;border-top:1px solid var(--ala-line);scrollbar-width:none}
.ala-chips::-webkit-scrollbar{display:none}
.ala-chip{flex:none;border:1px solid var(--ala-line);background:#fff;color:var(--ala-ink);border-radius:999px;padding:.4rem .75rem;font:500 .8rem/1.2 inherit;cursor:pointer;white-space:nowrap;transition:all .2s}
.ala-chip:hover{border-color:var(--ala-accent);background:#FFE9DC}
.ala-chip--human{background:var(--ala-ink);color:#fff;border-color:var(--ala-ink)}
.ala-chip--human:hover{background:var(--ala-accent);color:var(--ala-ink);border-color:var(--ala-accent)}
.ala-input{display:flex;gap:.5rem;align-items:flex-end;padding:.7rem .8rem;background:#fff;border-top:1px solid var(--ala-line)}
.ala-input textarea{flex:1;resize:none;border:1px solid var(--ala-line);border-radius:14px;padding:.65rem .85rem;font:inherit;font-size:.92rem;max-height:120px;background:var(--ala-cloud)}
.ala-input textarea:focus{outline:none;border-color:var(--ala-accent);background:#fff}
.ala-send{width:42px;height:42px;border-radius:50%;border:0;background:var(--ala-accent);color:var(--ala-ink);display:grid;place-items:center;cursor:pointer;flex:none}
.ala-send:disabled{opacity:.5;cursor:default}
.ala-foot{margin:0;padding:.45rem .9rem .6rem;font-size:.7rem;color:var(--ala-slate);background:#fff;text-align:center}
.ala-handoff{display:flex;flex-direction:column;gap:.55rem;max-width:100%;width:100%}
.ala-field{display:flex;flex-direction:column;gap:.2rem;font-size:.78rem;color:var(--ala-slate)}
.ala-field input,.ala-field textarea{border:1px solid var(--ala-line);border-radius:10px;padding:.55rem .7rem;font:inherit;font-size:.9rem;color:var(--ala-ink)}
.ala-field textarea{min-height:70px;resize:vertical}
.ala-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.ala-submit{border:0;border-radius:999px;background:var(--ala-ink);color:#fff;font:600 .88rem/1 inherit;padding:.75rem 1rem;cursor:pointer}
.ala-submit:hover{background:var(--ala-accent);color:var(--ala-ink)}
@media (max-width:480px){.ala{right:12px;bottom:12px}.ala-panel{position:fixed;inset:auto 8px 84px 8px;width:auto;height:calc(100vh - 110px)}}
@media (prefers-reduced-motion:reduce){.ala-panel,.ala-typing span{animation:none}.ala-launcher{transition:none}}
/* QA 30 Sep chips: wrap instead of a hidden horizontal scroll (mouse users could not reach the last chips) */
.ala-chips{flex-wrap:wrap;overflow-x:hidden;overflow-y:auto;max-height:132px;scrollbar-width:thin}
.ala-chip{white-space:normal;text-align:left}
