#mkc-root{font-family:'JetBrains Mono',ui-monospace,monospace;}
#mkc-bubble{
  position:fixed;bottom:24px;right:24px;z-index:400;
  width:58px;height:58px;border-radius:50%;border:none;cursor:pointer;
  background:#12151b;padding:0;display:flex;align-items:center;justify-content:center;
}
.mkc-ring{
  position:absolute;inset:0;border-radius:50%;border:1.5px dashed rgba(255,138,61,.6);
  animation:mkc-spin 8s linear infinite;
}
@keyframes mkc-spin{to{transform:rotate(360deg);}}
.mkc-face{
  position:relative;width:40px;height:40px;border-radius:50%;
  background:linear-gradient(135deg,#ff8a3d,#a78bfa);color:#0a0c10;
  font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:17px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 18px rgba(255,138,61,.4);
}
.mkc-face.small{width:26px;height:26px;font-size:12px;box-shadow:none;flex-shrink:0;}
.mkc-dot{
  position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;
  background:#5cc488;border:2px solid #0a0c10;animation:mkc-pulse 2s ease-in-out infinite;
}
@keyframes mkc-pulse{0%,100%{opacity:1;}50%{opacity:.5;}}
.mkc-tip{
  position:absolute;right:70px;bottom:6px;white-space:nowrap;
  background:#12151b;border:1px solid rgba(255,138,61,.3);border-radius:10px;
  padding:9px 13px;font-size:11px;color:#e8eaf0;text-align:left;line-height:1.5;
  opacity:0;transform:translateX(6px);transition:all .2s;pointer-events:none;
}
.mkc-tip b{color:#e8eaf0;font-weight:600;}
#mkc-bubble:hover .mkc-tip{opacity:1;transform:translateX(0);}
#mkc-bubble.open .mkc-tip{display:none;}

#mkc-panel{
  position:fixed;bottom:92px;right:24px;z-index:401;width:340px;max-width:calc(100vw - 32px);
  height:440px;max-height:calc(100vh - 130px);
  background:#0e1116;border:1px solid rgba(255,255,255,.1);border-radius:14px;
  display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px -12px rgba(0,0,0,.7);
}
#mkc-panel[hidden]{display:none;}
.mkc-head{display:flex;align-items:center;gap:8px;padding:12px 12px;background:#12151b;border-bottom:1px solid rgba(255,255,255,.08);}
.mkc-head-txt{flex:1;min-width:0;display:flex;flex-direction:column;}
.mkc-head-txt b{font-size:12.5px;color:#e8eaf0;font-weight:700;}
.mkc-head-txt b .amber{color:#ff8a3d;}
.mkc-head-txt span{font-size:9.5px;color:#8b93a3;}
.mkc-modes{display:flex;gap:3px;}
.mkc-mode{
  font-family:inherit;font-size:9.5px;font-weight:600;color:#8b93a3;background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:4px 7px;cursor:pointer;
}
.mkc-mode.active{background:rgba(255,138,61,.18);border-color:rgba(255,138,61,.5);color:#ff8a3d;}
#mkc-close{background:none;border:none;color:#8b93a3;font-size:18px;cursor:pointer;padding:0 2px;line-height:1;}
#mkc-close:hover{color:#e8eaf0;}

.mkc-msgs{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:8px;}
.mkc-msg{max-width:86%;padding:9px 11px;border-radius:10px;font-size:12px;line-height:1.55;white-space:pre-line;}
.mkc-msg.bot{align-self:flex-start;background:#171b22;color:#e8eaf0;border:1px solid rgba(255,255,255,.06);border-bottom-left-radius:3px;}
.mkc-msg.me{align-self:flex-end;background:rgba(255,138,61,.16);color:#e8eaf0;border:1px solid rgba(255,138,61,.3);border-bottom-right-radius:3px;}
.mkc-msg.bot.typing:empty::after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#ff8a3d;animation:mkc-blink 1s ease-in-out infinite;}
.mkc-msg.bot.typing:not(:empty)::after{content:"▋";color:#ff8a3d;animation:mkc-blink 1s step-end infinite;}
@keyframes mkc-blink{50%{opacity:.15;}}

.mkc-form{display:flex;align-items:center;gap:7px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.08);}
.mkc-prompt{color:#ff8a3d;font-size:12px;}
#mkc-input{
  flex:1;background:#12151b;border:1px solid rgba(255,255,255,.1);border-radius:7px;
  padding:8px 10px;color:#e8eaf0;font-family:inherit;font-size:12px;outline:none;min-width:0;
}
#mkc-input:focus{border-color:#ff8a3d;}
.mkc-form button[type=submit]{
  width:32px;height:32px;flex-shrink:0;border-radius:7px;border:none;background:#ff8a3d;
  color:#0a0c10;font-weight:700;cursor:pointer;
}

@media(max-width:480px){
  #mkc-bubble{bottom:16px;right:16px;}
  #mkc-panel{right:16px;bottom:82px;width:calc(100vw - 32px);}
}
