:root{--akma-primary:#87704E;--akma-navy:#111820;--akma-soft:#F7F5F0}
.akma-root{animation:akmaDelayedControlReveal .2s ease 5s both}
body.akma-delayed-controls-ready .akma-root{animation:none;opacity:1;visibility:visible;pointer-events:auto}
@keyframes akmaDelayedControlReveal{0%,99%{opacity:0;visibility:hidden;pointer-events:none}100%{opacity:1;visibility:visible;pointer-events:auto}}
.akma-root{position:fixed;z-index:999999;right:calc(max(18px,env(safe-area-inset-right)) + var(--akma-visual-right-gap,0px));bottom:var(--akma-docked-bottom,max(18px,env(safe-area-inset-bottom)));font:400 15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111820}
.akma-root.akma-open{top:calc(var(--akma-vtop,0px) + max(8px,env(safe-area-inset-top)));bottom:auto}
.akma-root *{box-sizing:border-box}
.akma-root .akma-launcher{position:relative;width:68px;height:68px;border:2px solid var(--akma-primary);border-radius:50%;padding:5px;background:#fff;box-shadow:0 10px 30px #0004;cursor:pointer}
.akma-root .akma-launcher-avatar,.akma-root .akma-avatar{display:block;border-radius:50%;object-fit:cover}
.akma-root .akma-launcher-avatar{width:56px;height:56px}
.akma-root .akma-badge{position:absolute;right:-2px;top:-4px;display:grid;place-items:center;width:24px;height:24px;border:2px solid #fff;border-radius:50%;background:#d52525;color:#fff;font-weight:800;font-size:13px}
.akma-root .akma-panel{display:flex;flex-direction:column;width:min(390px,calc(100vw - 24px));height:min(680px,calc(var(--akma-vh,100vh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));max-height:calc(var(--akma-vh,100vh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:hidden;border:1px solid #D7CCBC;border-radius:20px;background:#fff;box-shadow:0 18px 55px #0005}
.akma-root:not(.akma-flow-active) .akma-panel{height:auto}
.akma-root .akma-panel[hidden]{display:none}
.akma-root .akma-header{display:flex;align-items:center;gap:12px;min-height:72px;padding:11px 14px;background:var(--akma-navy);color:#fff}
.akma-root .akma-avatar{width:48px;height:48px;border:2px solid var(--akma-primary)}
.akma-root .akma-header strong{flex:1;font-size:16px}
.akma-root .akma-languages{display:flex;gap:3px}
.akma-root .akma-language{min-width:34px;min-height:34px;padding:4px;border:1px solid #fff7;border-radius:7px;background:#fff1;color:#fff;font:700 11px/1 system-ui;cursor:pointer}
.akma-root .akma-language[aria-pressed="true"]{background:var(--akma-primary);color:#fff;border-color:var(--akma-primary)}
.akma-root .akma-language:focus-visible{outline:3px solid #fff;outline-offset:2px}
.akma-root .akma-close{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff1;color:#fff;font-size:0;line-height:1;appearance:none;cursor:pointer}
.akma-root .akma-close::before,.akma-root .akma-close::after{content:"";position:absolute;left:50%;top:50%;width:21px;height:3px;border-radius:2px;background:currentColor;transform-origin:center}
.akma-root .akma-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.akma-root .akma-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.akma-root .akma-close:focus-visible{outline:3px solid var(--akma-primary);outline-offset:2px}
.akma-root .akma-messages{flex:0 1 auto;min-height:92px;max-height:320px;overflow:auto;padding:14px;background:#F7F5F0}
.akma-root .akma-message{max-width:88%;margin:0 0 10px;padding:10px 12px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.akma-root .akma-assistant{background:#fff;border:1px solid #D7CCBC}
.akma-root .akma-user{margin-left:auto;background:var(--akma-navy);color:#fff}
.akma-root .akma-link{display:block;margin-top:7px;color:#665337;font-weight:700}
.akma-root .akma-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px 12px;background:#fff}
.akma-root .akma-preset,.akma-root .akma-secondary{min-width:0;border:1px solid #665337;border-radius:999px;background:#fff;color:#665337;padding:8px 11px;cursor:pointer;font-weight:650;white-space:normal;text-align:center;overflow-wrap:anywhere}
.akma-root .akma-preset{font-size:14px;line-height:1.15;min-height:48px;padding:7px 9px}
.akma-root .akma-composer{display:flex;gap:7px;padding:10px 12px;border-top:1px solid #D7CCBC}
.akma-root .akma-input{min-width:0;flex:1}
.akma-root .akma-input,.akma-root .akma-field input,.akma-root .akma-field textarea{width:100%;border:1px solid #9b9b9b;border-radius:9px;padding:10px;background:#fff;color:#111;font:inherit}
.akma-root .akma-field textarea{min-height:82px;resize:vertical}
.akma-root.akma-compact.akma-lead-active .akma-field textarea{min-height:54px;height:54px;resize:none}
.akma-root .akma-send{border:0;border-radius:9px;padding:10px 14px;background:var(--akma-navy);color:#fff;font-weight:750;cursor:pointer}
.akma-root .akma-send:hover,.akma-root .akma-send:focus-visible{background:#665337;outline:3px solid var(--akma-primary);outline-offset:2px}
.akma-root .akma-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 12px 10px}
.akma-root .akma-actions .akma-secondary{font-size:13px;line-height:1.15;min-height:44px;padding:7px 5px}
.akma-root .akma-dynamic{max-height:58%;overflow:auto}
.akma-root.akma-compact:not(.akma-flow-active) .akma-panel{height:calc(var(--akma-vh,100vh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.akma-root.akma-compact:not(.akma-flow-active) .akma-messages{flex:1;min-height:0;max-height:none}
.akma-root.akma-compact:not(.akma-flow-active) .akma-presets{display:none}
.akma-root.akma-compact:not(.akma-flow-active) .akma-actions{display:none}
.akma-root.akma-flow-active .akma-messages{display:none}
.akma-root.akma-flow-active .akma-presets,.akma-root.akma-flow-active .akma-composer,.akma-root.akma-flow-active .akma-actions{display:none}
.akma-root.akma-flow-active .akma-dynamic{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:10px}
.akma-root.akma-flow-active .akma-card{margin:0;min-height:100%}
.akma-root.akma-lead-active .akma-dynamic{overflow:hidden}
.akma-root .akma-lead-form{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
.akma-root .akma-lead-form .akma-flow-toolbar{flex:0 0 auto}
.akma-root .akma-lead-fields{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
.akma-root .akma-lead-actions{flex:0 0 auto;padding-top:10px;border-top:1px solid #D7CCBC}
.akma-root .akma-lead-actions .akma-send{width:100%;min-height:44px}
.akma-root .akma-flow-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.akma-root .akma-flow-back{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #665337;border-radius:999px;background:#fff;color:#665337;padding:8px 13px;font:inherit;font-weight:750;cursor:pointer}
.akma-root .akma-flow-toolbar h3{margin:0}
.akma-root .akma-card{margin:0 10px 10px;padding:12px;border:1px solid #D7CCBC;border-radius:12px;background:var(--akma-soft)}
.akma-root .akma-card h3{margin:0 0 10px;font-size:16px}
.akma-root .akma-field{display:block;margin:0 0 9px}
.akma-root .akma-field>span{display:block;margin-bottom:3px;font-weight:650}
.akma-root .akma-nav{display:flex;justify-content:space-between;gap:8px}
.akma-root .akma-consent{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:6px 8px;margin:8px 0}
.akma-root .akma-consent input{width:18px;height:18px;margin:2px 0 0}
.akma-root .akma-privacy{grid-column:2;color:#665337;font-weight:700;white-space:normal}
.akma-root .akma-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.akma-root .akma-status{min-height:1.4em;margin:8px 0 0;font-weight:650}
.akma-root .akma-progress{margin:0 0 8px;color:#665337}
body.akma-chat-open .cky-btn-revisit-wrapper{visibility:hidden!important;pointer-events:none!important}
@media(max-width:600px){.akma-root.akma-open{left:0;right:auto;top:var(--akma-vtop,0px)}
.akma-root.akma-open .akma-panel{width:100vw;height:var(--akma-vh,100vh);max-height:var(--akma-vh,100vh);border:0;border-radius:0;box-shadow:none}
.akma-root.akma-open.akma-compact .akma-panel{height:var(--akma-vh,100vh);max-height:var(--akma-vh,100vh)}
.akma-root.akma-open:not(.akma-flow-active) .akma-messages{flex:1;min-height:0;max-height:none}
.akma-root.akma-open .akma-header{padding-top:max(11px,env(safe-area-inset-top))}
.akma-root.akma-open .akma-actions{padding-bottom:max(10px,env(safe-area-inset-bottom))}
.akma-root.akma-open .akma-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}
.akma-root.akma-open .akma-lead-actions{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
@media(max-width:320px){.akma-root{right:var(--akma-visual-right-gap,0px)}
.akma-root .akma-panel{width:100vw;border-radius:0}
.akma-root .akma-header{min-height:62px}
.akma-root .akma-message{max-width:94%}}
@media(max-height:568px){.akma-root .akma-panel{height:calc(var(--akma-vh,100vh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(var(--akma-vh,100vh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.akma-root .akma-header{min-height:58px;padding:6px 10px}
.akma-root .akma-avatar{width:42px;height:42px}
.akma-root .akma-presets{padding-block:5px}}
@media(max-height:350px){.akma-root .akma-panel{height:calc(var(--akma-vh,100vh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:min(520px,calc(100vw - 8px));border-radius:8px}
.akma-root .akma-header{min-height:48px}
.akma-root .akma-avatar{width:36px;height:36px}
.akma-root .akma-dynamic{max-height:70%}}
@media(prefers-reduced-motion:reduce){.akma-root *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.akma-header>*{flex-shrink:0}
.akma-root .akma-header strong{min-width:0;flex-shrink:1}
.akma-root.akma-open .akma-launcher{opacity:0;visibility:hidden;pointer-events:none}
.akma-root button:focus-visible,.akma-root input:focus-visible,.akma-root textarea:focus-visible,.akma-root a:focus-visible{outline:3px solid #665337;outline-offset:2px}
.akma-root .akma-notice{font-size:13px;color:#111820;line-height:1.4}
.akma-root .akma-send{background:#665337}
.akma-root .akma-message{flex-shrink:0}
@media(max-width:600px){body.akma-chat-open{overflow:hidden}}
@media(max-width:320px){.akma-root .akma-header{gap:6px;padding-inline:8px}
.akma-root .akma-header strong{font-size:14px}}
.akma-lead-fields[hidden],.akma-root .akma-lead-actions button[hidden]{display:none}
.akma-root .akma-complete .akma-status{padding:16px;background:#fff;border:2px solid #665337;border-radius:10px;overflow-wrap:anywhere}
.akma-root .akma-complete .akma-lead-actions{border:0}
.akma-root .akma-header button:disabled{opacity:.55;cursor:wait}
