/* Shared public widgets: scoped styling for the dynamically loaded Maya script. */
.maya-support{position:fixed;z-index:990;right:max(18px,env(safe-area-inset-right));bottom:calc(max(18px,env(safe-area-inset-bottom)) + var(--maya-bottom,0px));font:14px/1.5 system-ui,sans-serif;color:#182235;max-width:calc(100vw - 30px)}
.maya-support *{box-sizing:border-box}
.maya-support [hidden]{display:none!important}
.maya-support button,.maya-support textarea{font:inherit;color:#182235;border:1px solid #c5d1e1;border-radius:10px;background:#f3f6fb;padding:9px 12px}
.maya-support button{cursor:pointer;min-height:44px}
.maya-support button:disabled{opacity:.6;cursor:wait}
.maya-support :focus-visible{outline:3px solid #2456a6;outline-offset:3px}
.maya-support a{color:#2456a6;text-decoration:underline}
.maya-support .maya-launch{display:flex;align-items:center;gap:9px;border-radius:999px;border:1px solid #314e78;background:#213f69;color:white;box-shadow:0 6px 22px #18223536;padding:8px 14px 8px 8px;min-height:48px;font-weight:650;white-space:nowrap}
.maya-support .maya-launch:hover{background:#172f51}
.maya-support .maya-launch span:last-child{color:white}
.maya-support .maya-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#e8f2ff;color:#204e83;font-weight:800}
.maya-support section{width:370px;max-width:calc(100vw - 30px);height:min(590px,calc(100dvh - 100px),var(--maya-height,590px));display:flex;flex-direction:column;padding:16px;gap:9px;background:#fff;color:#182235;border:1px solid #d6e0ed;border-radius:17px;box-shadow:0 16px 48px #12233c38;margin-bottom:10px;overflow:auto}
.maya-support header{display:flex;align-items:center;justify-content:space-between;background:transparent;padding:0;position:static;color:#182235}
.maya-support p{margin:0}
.maya-support .maya-mode,.maya-support .maya-warning,.maya-support .maya-state{font-size:12px;color:#51657e}
.maya-support .maya-log{flex:1;min-height:90px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:9px}
.maya-support .maya-bubble{background:#f0f5fc;padding:10px 12px;border-radius:12px;margin-right:18px;overflow-wrap:anywhere;flex-shrink:0}
.maya-support .maya-bubble a{display:inline-block;margin-top:6px}
.maya-support .maya-user{background:#dceafc;margin-right:0;margin-left:24px}
.maya-support .maya-actions{display:flex;gap:5px;flex-wrap:wrap}
.maya-support .maya-actions button{font-size:12px;padding:5px 8px}
.maya-support form{display:grid;grid-template-columns:1fr auto;gap:6px}
.maya-support .maya-label{grid-column:1/-1;font-size:12px}
.maya-support textarea{width:100%;resize:none;min-width:0}
.maya-support .maya-handoff{font-size:13px}
.maya-support .maya-close{font-size:22px;line-height:1}
.maya-support .maya-launch[aria-expanded=true]{display:none}
@media(max-width:480px){.maya-support section{width:calc(100vw - 24px)}.maya-support textarea{font-size:16px}.maya-support{right:12px;bottom:calc(12px + var(--maya-bottom,0px))}}
@media(prefers-reduced-motion:reduce){.maya-support *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* DokuTakt: same Maya button and mobile panel, isolated from sticky site header. */
.dokutakt-maya { font-family:system-ui,sans-serif; isolation:isolate; }
.dokutakt-maya .maya-panel-header { position:static;z-index:auto;background:transparent;
  border:0;box-shadow:none;backdrop-filter:none;display:flex;align-items:center;
  justify-content:space-between;padding:0;min-height:28px;width:100%; }
.dokutakt-maya .maya-panel-header strong {font-size:15px}
.dokutakt-maya .maya-launch { font-size:13px;line-height:1.4; }
.dokutakt-maya section {position:relative;max-height:var(--maya-height,590px);overflow:hidden;}
.dokutakt-maya .maya-log {min-height:50px;}
.dokutakt-maya textarea {max-height:115px;font-size:16px}
.dokutakt-maya .maya-submit {white-space:nowrap}
.dokutakt-maya .maya-actions {align-items:stretch;}
.dokutakt-maya .maya-actions button {min-height:32px;}
.dokutakt-maya .maya-warning {font-size:11px;line-height:1.4}
.dokutakt-maya .maya-close {border:0;background:transparent;color:#1c3354;min-width:44px}
@media(max-width:600px) {
 .dokutakt-maya{right:max(12px,env(safe-area-inset-right));
   bottom:calc(12px + env(safe-area-inset-bottom) + var(--maya-bottom,0px));}
 .dokutakt-maya section{width:min(420px,calc(100vw - 24px));padding:12px;
   height:min(580px,calc(100dvh - 85px),var(--maya-height,580px));}
 .dokutakt-maya form{grid-template-columns:minmax(0,1fr) auto;}
}
