/* Card artwork for the AI Chatbot page's automation hub (extends wm-hub.css; classes start with "wma-") */
.wma{--wma-warn:#d92d20;--wma-warn-bg:#fee4e2;--wma-warn-line:#fda29b}

/* chat bubbles */
.wma-bub{display:block;width:fit-content;max-width:88%;padding:7px 11px;font-size:12.5px;line-height:1.4;color:var(--wmh-ink)}
.wma-bub--in{margin-left:auto;background:var(--wmh-bg);border:1.5px solid var(--wmh-line);border-radius:11px 11px 3px 11px}
.wma-bub--out{background:var(--wmh-g100);border:1.5px solid var(--wmh-g100);border-radius:11px 11px 11px 3px}
.wma-bub b{color:var(--wmh-accent);font-weight:700}

/* keyword bot replies */
.wma-match{display:flex;gap:6px;margin-bottom:12px;--step:1.2s;--loop:5.4s}
.wma-match .wmh-pill{flex:1;justify-content:center;padding:6px 4px;font-size:11.5px}
.wma-chat{display:grid;gap:6px}
.wma-qr{display:flex;gap:5px}
.wma-qr span{flex:1;padding:5px 2px;border:1.5px solid var(--wmh-g300);border-radius:7px;background:var(--wmh-bg);color:var(--wmh-accent);font-size:11px;font-weight:700;text-align:center;white-space:nowrap}
.wma-chat .wma-bub--in{animation:wmaK0 7s ease infinite both}
.wma-chat .wma-bub--out{animation:wmaK1 7s ease infinite both}
.wma-qr span{animation:wmaK2 7s ease infinite both;animation-delay:calc(var(--n)*.16s)}
@keyframes wmaK0{0%{opacity:0;transform:translateY(6px)}5%,88%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
@keyframes wmaK1{0%,17%{opacity:0;transform:translateY(6px)}23%,88%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
@keyframes wmaK2{0%,33%{opacity:0;transform:scale(.85)}39%,88%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}

/* smart router + flow builder diagrams */
.wma-diagram{width:100%;height:auto;overflow:visible;font-family:inherit}
.wma-diagram text{font-size:11.5px;font-weight:600;fill:var(--wmh-ink)}
.wma-diagram .d-cap{font-size:9px;font-weight:700;letter-spacing:.06em;fill:var(--wmh-muted);text-transform:uppercase}
.wma-diagram .d-ic{color:var(--wmh-accent)}
.wma-diagram .d-wire{fill:none;stroke:var(--wmh-g300);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.wma-diagram .d-run{fill:none;stroke:var(--wmh-accent);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:18 100;stroke-dashoffset:18;animation:wmaRun var(--loop) linear infinite;animation-delay:calc(var(--n)*var(--step) + var(--lead,0s))}
.wma-diagram .d-node{fill:var(--wmh-bg);stroke:var(--wmh-line);stroke-width:1.5;animation:wmaNode var(--loop) ease-in-out infinite both;animation-delay:calc(var(--n)*var(--step) + var(--lag,0s))}
.wma-diagram .d-src{fill:var(--wmh-g100);stroke:var(--wmh-g300);stroke-width:1.5}
.wma-diagram .d-hub{fill:var(--wmh-accent)}
.wma-diagram .d-win{fill:var(--wmh-g50);stroke:var(--wmh-g200);stroke-width:1.5}
.wma-diagram .d-dot{fill:var(--wmh-g200)}
.wma-diagram .d-chrome{fill:var(--wmh-g300)}
@keyframes wmaRun{0%{stroke-dashoffset:18}16%,100%{stroke-dashoffset:-100}}
@keyframes wmaNode{0%,48%,100%{fill:var(--wmh-bg);stroke:var(--wmh-line)}8%,36%{fill:var(--wmh-g100);stroke:var(--wmh-bright)}}
.wma-router{--loop:4.5s;--step:1.5s;--lag:.55s}
.wma-flowmap{--loop:6s;--step:1.3s;--lead:.75s}
.wma-flowmap text{font-size:11px}

/* AI assistant */
.wma-ai{display:flex;align-items:center;gap:16px;margin-bottom:12px}
.wma-chip{flex:none;width:66px;height:66px}
.wma-chip .c-body{fill:var(--wmh-accent)}
.wma-chip .c-pin{stroke:var(--wmh-g300);stroke-width:3;stroke-linecap:round;animation:wmaPin 2.4s ease-in-out infinite;animation-delay:calc(var(--n)*.3s)}
.wma-chip .c-star{fill:#fff;transform-box:fill-box;transform-origin:center;animation:wmaStar 2.4s ease-in-out infinite}
@keyframes wmaPin{0%,100%{stroke:var(--wmh-g300)}50%{stroke:var(--wmh-bright)}}
@keyframes wmaStar{0%,100%{transform:scale(.82) rotate(0deg)}50%{transform:scale(1.08) rotate(20deg)}}
.wma-ai__side{display:grid;gap:7px;flex:1;min-width:0}
.wma-key{justify-content:flex-start;background:var(--wmh-g50);border-color:var(--wmh-g200);color:var(--wmh-ink)}
.wma-key em{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-style:normal;font-size:11px;font-weight:700;color:var(--wmh-accent)}
.wma-key em::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--wmh-bright);animation:wmaBlink 1.6s ease-in-out infinite}
@keyframes wmaBlink{0%,100%{opacity:1}50%{opacity:.25}}
.wma-prov{display:flex;gap:6px;--step:1.8s;--loop:3.6s}
.wma-prov .wmh-pill{flex:1;justify-content:center}
.wma-persona{display:flex;gap:6px;--step:1.2s;--loop:5.4s}
.wma-persona .wmh-pill{flex:1;justify-content:center;padding:6px 4px}

/* demo and booking bot */
.wma-book{display:grid;gap:9px}
.wma-slots{display:flex;gap:6px;--step:1.1s;--loop:4.4s}
.wma-slots .wmh-pill{flex:1;justify-content:center;padding:6px 4px}
.wma-sync{display:flex;align-items:center;gap:9px;margin-top:3px}
.wma-booked{flex:none;display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:9px;background:var(--wmh-accent);color:#fff;font-size:12.5px;font-weight:700;animation:wmaBooked 3s ease-in-out infinite}
@keyframes wmaBooked{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.wma-apps{display:grid;gap:6px;flex:none}
.wma-apps .wmh-pill{justify-content:flex-start;color:var(--wmh-ink)}
.wma-apps .wmh-ico{color:var(--wmh-accent)}

/* human handoff */
.wma-hand{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.wma-agent{flex:none;display:grid;justify-items:center;gap:5px}
.wma-agent em{font-style:normal;font-size:11px;font-weight:700;color:var(--wmh-text)}
.wma-face{position:relative;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:var(--wmh-g100);border:1.5px solid var(--wmh-g300);color:var(--wmh-accent)}
.wma-face svg{width:26px;height:26px}
.wma-agent--live .wma-face{background:var(--wmh-accent);border-color:var(--wmh-accent);color:#fff}
.wma-agent--live .wma-face::after{content:"";position:absolute;inset:-1.5px;border-radius:50%;border:2px solid var(--wmh-accent);animation:wmaRing 2.2s ease-out infinite}
@keyframes wmaRing{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.5);opacity:0}}
.wma-hand__mid{flex:1;min-width:0;display:grid;justify-items:center;gap:12px;padding-bottom:14px}
.wma-hand__mid .wmh-flow{width:100%;flex:none}
.wma-alert{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:99px;background:var(--wma-warn-bg);border:1.5px solid var(--wma-warn-line);color:var(--wma-warn);font-size:11.5px;font-weight:700;white-space:nowrap;animation:wmaAlert 2.2s ease-in-out infinite}
@keyframes wmaAlert{0%,100%{transform:scale(1)}12%{transform:scale(1.08)}24%{transform:scale(1)}}
.wma-alertnum{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 12px;border:1.5px solid var(--wmh-g200);border-radius:10px;background:var(--wmh-g50);font-size:12px;font-weight:600;color:var(--wmh-text)}
.wma-alertnum .wmh-pill{font-size:13px;font-weight:700;color:var(--wmh-ink)}

@media (max-width:480px){
  .wma-sync{flex-wrap:wrap}
  .wma-hand{gap:6px}
}
@media (prefers-reduced-motion:reduce){
  .wma *,.wma *::before,.wma *::after{animation:none!important}
  .wma .wma-bub,.wma .wma-qr span{opacity:1!important}
}
