/* Miles, the on-site help assistant */
.eba{position:fixed;right:22px;bottom:22px;z-index:80;font-family:var(--f);display:flex;flex-direction:column;align-items:flex-end;gap:14px;pointer-events:none}
.eba>*{pointer-events:auto}
.eba.is-waiting,.eba.is-tucked:not(.is-open),.eba.is-early:not(.is-open){visibility:hidden;opacity:0}
.eba{transition:opacity .25s var(--ease),visibility 0s}

.eba .eba-launch{order:2;display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 7px!important;border:0!important;border-radius:999px!important;background:var(--navy)!important;color:#fff!important;font:500 14px/1 var(--f)!important;cursor:pointer;box-shadow:0 18px 40px -14px rgba(11,29,58,.55),0 0 0 1px rgba(255,255,255,.06) inset;transition:transform .3s var(--ease),background .2s}
.eba .eba-launch:hover{transform:translateY(-2px);background:var(--navy-2)!important}
.eba .eba-launch:focus-visible{outline:3px solid var(--sky-2);outline-offset:3px}
.eba-launch b{font-weight:500;color:#fff}
.eba-launch-txt{white-space:nowrap}
.eba-pin{position:relative;flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--blue);color:#fff}
.eba-pin svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.eba-launch .eba-pin::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--blue);opacity:0;animation:eba-ping 2.6s var(--ease) 1.5s 2}
@keyframes eba-ping{0%{opacity:.7;transform:scale(.85)}100%{opacity:0;transform:scale(1.35)}}
.eba.is-open .eba-launch-txt{display:none}
.eba.is-open .eba-launch{padding:0 7px!important}

.eba-panel{order:1;width:384px;height:min(600px,calc(100vh - 120px));display:flex;flex-direction:column;background:#fff;border-radius:8px;box-shadow:var(--shadow-l),0 0 0 1px rgba(11,29,58,.06);overflow:hidden;transform-origin:bottom right;animation:eba-in .35s var(--ease)}
.eba-panel[hidden]{display:none}
@keyframes eba-in{from{opacity:0;transform:translateY(12px) scale(.97)}}

.eba-head{position:relative;display:flex;align-items:center;gap:12px;padding:18px 16px 18px 18px;background:var(--navy);color:#D9D2C4;overflow:hidden}
.eba-head::before{content:"";position:absolute;right:-30px;top:-40px;width:210px;height:150px;border:2px dashed rgba(143,180,255,.28);border-radius:50%;transform:rotate(-18deg)}
.eba-head>*{position:relative}
.eba-head .eba-pin{width:40px;height:40px}
.eba-head div{flex:1;min-width:0}
.eba-title{margin:0!important;color:#fff;font-weight:500;font-size:15px;line-height:1.3}
.eba-sub{margin:3px 0 0!important;font-size:12px;line-height:1.45;color:#A7B09C}
.eba .eba-close{flex:none;width:38px;height:38px;display:grid;place-items:center;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.08)!important;color:#fff!important;cursor:pointer}
.eba .eba-close:hover{background:rgba(255,255,255,.16)!important}
.eba-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.eba-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 16px 8px;background:var(--paper-2);display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.eba-row{display:flex}
.eba-me{justify-content:flex-end}
.eba-bubble{max-width:86%;padding:11px 14px;border-radius:6px;font-size:14px;line-height:1.55}
.eba-bubble p{margin:0!important}
.eba-bubble p+p{margin-top:8px!important}
.eba-bot .eba-bubble{background:#fff;color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:6px}
.eba-me .eba-bubble{background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.eba-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.eba-links a{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:var(--sky);color:var(--blue-d)!important;font-weight:600;font-size:13px;text-decoration:none!important}
.eba-links a::after{content:"\2192";margin-left:6px}
.eba-links a:hover{background:var(--sky-2)}

.eba-typing .eba-bubble{display:flex;gap:4px;padding:14px 16px}
.eba-typing i{width:7px;height:7px;border-radius:50%;background:#8C8F86;animation:eba-dot 1s infinite}
.eba-typing i:nth-child(2){animation-delay:.15s}.eba-typing i:nth-child(3){animation-delay:.3s}
@keyframes eba-dot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}

.eba-chips{display:flex;flex-wrap:wrap;gap:7px;padding:2px 0 6px}
.eba .eba-chip{min-height:36px;padding:0 14px!important;border:1.5px solid var(--sky-2)!important;border-radius:999px!important;background:#fff!important;color:var(--navy)!important;font:500 13px/1.2 var(--f)!important;cursor:pointer;text-align:left;transition:border-color .2s,background .2s}
.eba .eba-chip:hover{border-color:var(--blue)!important;background:var(--sky)!important}
.eba .eba-chip:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.eba .eba-chip-team{border-style:dashed!important;color:var(--blue-d)!important}

.eba-handoff{display:grid;gap:10px;padding:16px;margin:2px 0 8px;background:#fff;border:1px solid var(--line);border-radius:6px}
.eba-hf-title{margin:0!important;font-weight:500;color:var(--navy);font-size:14px}
.eba-handoff label{display:grid;gap:5px;font-size:12.5px;font-weight:600;color:var(--ink-2)}
.eba-handoff input,.eba-handoff textarea{width:100%;padding:10px 12px!important;border:1.5px solid #CFC7B8!important;border-radius:4px!important;font:400 14px/1.4 var(--f)!important;color:var(--ink)!important;background:#fff!important;box-shadow:none!important}
.eba-handoff input:focus,.eba-handoff textarea:focus{border-color:var(--blue)!important;outline:0}
.eba-handoff textarea{resize:vertical;min-height:74px}
.eba-err{margin:0!important;color:#A33A1C;font-size:13px}
.eba-err[hidden]{display:none}
.eba-hf-actions{display:flex;gap:8px;align-items:center}
.eba .eba-send{min-height:44px;padding:0 18px!important;border:0!important;border-radius:4px!important;background:var(--blue)!important;color:#fff!important;font:600 14px/1 var(--f)!important;cursor:pointer}
.eba .eba-send:disabled{opacity:.7;cursor:wait}
.eba .eba-cancel{padding:0 8px!important;border:0!important;background:none!important;color:var(--muted)!important;font:500 13px/1 var(--f)!important;text-decoration:underline;cursor:pointer}
.eba-hf-note{margin:0!important;font-size:11.5px;color:var(--muted)}

.eba-ask{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);background:#fff}
.eba-ask input{flex:1;min-width:0;height:46px;padding:0 16px!important;border:1.5px solid #CFC7B8!important;border-radius:999px!important;font:400 14px var(--f)!important;color:var(--ink)!important;background:var(--paper-2)!important;box-shadow:none!important}
.eba-ask input:focus{border-color:var(--blue)!important;background:#fff!important;outline:0}
.eba .eba-ask button{flex:none;width:46px;height:46px;display:grid;place-items:center;padding:0!important;border:0!important;border-radius:50%!important;background:var(--blue)!important;color:#fff!important;cursor:pointer}
.eba .eba-ask button:hover{background:var(--blue-d)!important}
.eba-ask svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:760px){
	.eba{right:14px;bottom:14px}
	.eba .eba-launch{height:52px;padding:0 16px 0 6px!important;font-size:13px!important}
	.eba-q{display:none}
	.eba-launch .eba-pin{width:40px;height:40px}
	.eba.is-open{left:0;right:0;bottom:0;top:0;gap:0}
	.eba.is-open .eba-launch{display:none}
	.eba-panel{width:100%;height:100%;border-radius:0;box-shadow:none}
	.eba.is-open{background:#fff}
	.eba-ask input{font-size:16px!important}
}
@media (prefers-reduced-motion:reduce){.eba *,.eba{animation:none!important;transition:none!important}.eba-log{scroll-behavior:auto}}
@media print{.eba{display:none}}
