/* MichaelLogic chat window: new look. Loads after the page styles and only restyles the chat. */
html body .chat-fab{width:54px;height:54px;right:18px;bottom:18px;background:linear-gradient(145deg,#f2dc9a 0%,#dfb449 48%,#b98f2c 100%);
  box-shadow:0 10px 30px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.18) inset,0 0 28px rgba(223,180,73,.28);transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s}
html body .chat-fab svg{width:22px;height:22px}
@media (hover:hover) and (pointer:fine){html body .chat-fab:hover{transform:translateY(-2px) scale(1.06);box-shadow:0 14px 36px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.22) inset,0 0 38px rgba(223,180,73,.42)}}

html body .chat-panel{right:18px;bottom:84px;width:min(344px,calc(100vw - 32px));height:min(520px,calc(100vh - 110px));height:min(520px,calc(100dvh - 110px));max-height:none;
  border-radius:18px;border:1px solid rgba(223,180,73,.24);
  background:radial-gradient(120% 60% at 50% -10%,rgba(223,180,73,.13),transparent 60%),linear-gradient(180deg,#141414,#0e0e0e);
  box-shadow:0 30px 80px rgba(0,0,0,.7),0 0 0 1px rgba(0,0,0,.6);overflow:hidden}
html body .chat-panel.open{animation:mlPanelIn .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes mlPanelIn{from{opacity:0;transform:translateY(14px) scale(.97)}}

html body .chat-head{padding:11px 14px;gap:10px;background:linear-gradient(180deg,rgba(223,180,73,.10),rgba(223,180,73,0));border-bottom:1px solid rgba(223,180,73,.16)}
html body .chat-head .av{width:36px;height:36px;border-radius:50%;border:1.5px solid rgba(223,180,73,.65);background:#0b0b0b;box-shadow:0 0 0 3px rgba(223,180,73,.10)}
html body .chat-head b{font-size:14px;letter-spacing:.01em}
html body .chat-head .tag{color:#dfb449;border-color:rgba(223,180,73,.45);background:rgba(223,180,73,.08);border-radius:99px;padding:2px 8px}
html body .chat-head small{color:#cfcfcf;font-size:11.5px;margin-top:2px}
html body .chat-head .live{width:8px;height:8px;background:#4ac26b;box-shadow:0 0 0 0 rgba(74,194,107,.6);animation:mlLive 2.2s infinite}
@keyframes mlLive{0%{box-shadow:0 0 0 0 rgba(74,194,107,.55)}70%{box-shadow:0 0 0 7px rgba(74,194,107,0)}100%{box-shadow:0 0 0 0 rgba(74,194,107,0)}}
html body .chat-x{width:28px;height:28px;padding:0;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.06);color:#d6d6d6;align-self:center;font-size:20px}
@media (hover:hover) and (pointer:fine){html body .chat-x:hover{background:rgba(223,180,73,.18);color:#fff}}

html body .chat-log{padding:14px 14px 8px;gap:9px;min-height:0;flex:1 1 auto;scrollbar-width:thin;scrollbar-color:rgba(223,180,73,.35) transparent}
html body .chat-log::-webkit-scrollbar{width:6px}
html body .chat-log::-webkit-scrollbar-thumb{background:rgba(223,180,73,.3);border-radius:6px}
html body .msg{max-width:90%;padding:8px 12px;font-size:13.5px;line-height:1.5;border-radius:15px}
html body .msg.bot{background:#1b1b1b;border:1px solid rgba(255,255,255,.07);border-bottom-left-radius:5px;color:#f1f1f1}
html body .msg.me{background:linear-gradient(145deg,#f2dc9a,#dfb449);color:#17120a;border:0;border-bottom-right-radius:5px;font-weight:500;box-shadow:0 4px 14px rgba(223,180,73,.18)}
html body .msg a{color:#f2dc9a;text-decoration:underline;text-underline-offset:2px}
html body .msg a.go{color:#dfb449;font-weight:500}
html body .msg.me a{color:#17120a}
html body .msg b{color:#fff}
html body .msg.me b{color:#17120a}
html body .typing{padding:14px 16px}
html body .typing i{background:#dfb449}

html body .chat-quick{padding:2px 14px 8px;gap:6px;max-height:96px;flex:0 0 auto;overflow-y:auto;scrollbar-width:none}
html body .chat-quick::-webkit-scrollbar{display:none}
html body .chat-quick button,html body .chat-follow button{font-size:12px;padding:6px 11px;border-radius:99px;border:1px solid rgba(223,180,73,.32);background:rgba(223,180,73,.06);color:#f2dc9a;transition:background .2s,border-color .2s,color .2s,transform .15s}
html body .chat-quick button.more{border-style:dashed;color:#bdbdbd;border-color:rgba(255,255,255,.22);background:transparent}
html body .chat-quick button.leave{color:#17120a;background:linear-gradient(145deg,#f2dc9a,#dfb449);border-color:transparent;font-weight:600}
@media (hover:hover) and (pointer:fine){
  html body .chat-quick button:hover,html body .chat-follow button:hover{background:rgba(223,180,73,.18);border-color:#dfb449;color:#fff}
  html body .chat-quick button.leave:hover{background:linear-gradient(145deg,#fff0bd,#f0c75a);color:#17120a}
}
html body .chat-follow{gap:6px;max-width:100%}

html body .chat-input{padding:2px 14px 10px;gap:8px;align-items:center}
html body .chat-input input{height:40px;padding:0 15px;border-radius:99px;background:#0a0a0a;border:1px solid rgba(255,255,255,.14);font-size:13.5px;transition:border-color .2s,box-shadow .2s}
html body .chat-input input:focus{outline:0;border-color:#dfb449;box-shadow:0 0 0 3px rgba(223,180,73,.18)}
html body .chat-input button{width:40px;height:40px;background:#1d1d1d;border:1px solid rgba(255,255,255,.14);transition:background .2s,transform .15s,box-shadow .2s}
html body .chat-input button svg{width:16px;height:16px}
html body .chat-input.has-text button{background:linear-gradient(145deg,#f2dc9a,#dfb449);border-color:transparent;box-shadow:0 4px 16px rgba(223,180,73,.35)}
html body .chat-input.has-text button:active{transform:scale(.94)}

html body .chat-note{padding:0 16px 8px;font-size:10.5px;color:#9a9a9a;text-align:center}
html body .chat-foot{padding:7px 14px;border-top:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.25)}
html body .chat-foot a{color:#dfb449;font-size:11.5px}

html body .chat-form{padding:0 14px 10px;gap:8px}
html body .chat-form input,html body .chat-form textarea{padding:12px 14px;border-radius:14px;background:#0a0a0a;border:1px solid rgba(255,255,255,.14);font-size:14px}
html body .chat-form input:focus,html body .chat-form textarea:focus{outline:0;border-color:#dfb449;box-shadow:0 0 0 3px rgba(223,180,73,.18)}
html body .chat-send{padding:13px;font-size:14px;font-weight:600;background:linear-gradient(145deg,#f2dc9a,#dfb449);box-shadow:0 6px 18px rgba(223,180,73,.25)}
html body .chat-cancel{color:#bdbdbd}
html body .chat-consent a{color:#f2dc9a}

/* phones: full-screen sheet */
@media (max-width:560px){
  html body .chat-panel{right:0;left:0;bottom:0;top:auto;width:100vw;height:min(540px,80vh);height:min(540px,80dvh);max-height:none;border-radius:18px 18px 0 0;border-width:1px 0 0 0}
  html body .chat-head{padding-top:12px}
  html body .chat-input{padding-bottom:max(14px,env(safe-area-inset-bottom))}
  html body .chat-foot{padding-bottom:max(11px,env(safe-area-inset-bottom))}
  html body .chat-fab{right:16px;bottom:16px}
}
@media (prefers-reduced-motion:reduce){
  html body .chat-panel.open{animation:none}
  html body .chat-head .live{animation:none}
}

/* FAB = MLI logo */
html body .chat-fab{background:#0b0b0b url("/logo-mark.png?v=1") center/cover no-repeat;border-radius:16px;border:1.5px solid rgba(223,180,73,.75);
  box-shadow:0 10px 28px rgba(0,0,0,.6),0 0 0 3px rgba(223,180,73,.12),0 0 24px rgba(223,180,73,.30)}
html body .chat-fab svg{display:none}
html body .chat-fab::after{content:"";position:absolute;top:-5px;right:-5px;width:13px;height:13px;border-radius:50%;background:#4ac26b;border:2px solid #0b0b0b;animation:mlLive 2.2s infinite}
html body .chat-fab[aria-expanded="true"]::before{content:"\00d7";position:absolute;inset:0;display:grid;place-items:center;border-radius:14px;background:rgba(11,11,11,.78);color:#f2dc9a;font-size:30px;line-height:1;font-weight:300}
html body .chat-fab[aria-expanded="true"]::after{display:none}
html body .chat-fab:not(.seen){animation:mlFabGlow 2.6s ease-in-out 3}
@keyframes mlFabGlow{50%{box-shadow:0 10px 28px rgba(0,0,0,.6),0 0 0 7px rgba(223,180,73,.20),0 0 42px rgba(223,180,73,.55)}}
@media (hover:hover) and (pointer:fine){html body .chat-fab:hover{transform:translateY(-3px) scale(1.07);box-shadow:0 14px 34px rgba(0,0,0,.65),0 0 0 3px rgba(223,180,73,.22),0 0 36px rgba(223,180,73,.5)}}
@media (prefers-reduced-motion:reduce){html body .chat-fab::after,html body .chat-fab:not(.seen){animation:none}}

/* FAB alive: breathing glow, gentle float, light sweep, and a little wave every few seconds */
html body .chat-fab[aria-expanded="false"]{animation:mlAura 3.8s ease-in-out infinite,mlFloat 3.6s ease-in-out infinite,mlWave 9s ease-in-out 2s infinite}
html body .chat-fab[aria-expanded="false"]::before{content:"";position:absolute;inset:0;border-radius:14px;pointer-events:none;
  background:linear-gradient(115deg,transparent 38%,rgba(255,244,200,.6) 50%,transparent 62%);background-size:260% 100%;background-position:160% 0;
  animation:mlShine 5.5s ease-in-out 1s infinite}
html body .chat-fab[aria-expanded="true"]{animation:none}
@keyframes mlAura{0%,100%{box-shadow:0 10px 28px rgba(0,0,0,.6),0 0 0 3px rgba(223,180,73,.12),0 0 22px rgba(223,180,73,.28)}
  50%{box-shadow:0 12px 32px rgba(0,0,0,.62),0 0 0 8px rgba(223,180,73,.17),0 0 44px rgba(223,180,73,.58)}}
@keyframes mlFloat{0%,100%{translate:0 0}50%{translate:0 -4px}}
@keyframes mlWave{0%,84%,100%{rotate:0deg;scale:1}87%{rotate:-10deg;scale:1.09}90%{rotate:9deg;scale:1.09}93%{rotate:-6deg;scale:1.05}96%{rotate:3deg;scale:1.02}}
@keyframes mlShine{0%,55%{background-position:160% 0}85%,100%{background-position:-60% 0}}
@media (hover:hover) and (pointer:fine){html body .chat-fab[aria-expanded="false"]:hover{animation-play-state:paused,paused,paused}}
@media (prefers-reduced-motion:reduce){html body .chat-fab[aria-expanded="false"],html body .chat-fab[aria-expanded="false"]::before{animation:none}}
