/* Mkuu helper bubble (Neckrone8x Stories). Every class starts with mkh- */
.mkh-root {
  --mkh-bg: #0f1729; --mkh-card: #18223a; --mkh-border: #2a3656;
  --mkh-text: #e8eefc; --mkh-dim: #9aa7c7; --mkh-accent: #38bdf8; --mkh-ink: #06202e;
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9999; font-family: inherit; font-size: 15px; line-height: 1.45; color: var(--mkh-text);
}
.mkh-root *, .mkh-root *::before, .mkh-root *::after { box-sizing: border-box; }
.mkh-root button, .mkh-root input { font-family: inherit; font-size: inherit; }

.mkh-fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .45);
  transition: transform .15s ease;
}
.mkh-fab:hover { transform: scale(1.06); }
.mkh-fab { position: relative; }
.mkh-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #f59e0b; border: 2px solid #fff; animation: mkh-pulse 1.8s ease-out infinite; }
.mkh-dot[hidden] { display: none; }
.mkh-fab:focus-visible, .mkh-iconbtn:focus-visible, .mkh-send:focus-visible,
.mkh-chipbtn:focus-visible, .mkh-card:focus-visible, .mkh-input:focus-visible {
  outline: 2px solid var(--mkh-accent); outline-offset: 2px;
}
.mkh-root[data-open="true"] .mkh-fab { display: none; }

.mkh-panel {
  position: absolute; right: 0; bottom: 0; width: 380px; max-width: calc(100vw - 24px);
  height: min(580px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--mkh-bg); border: 1px solid var(--mkh-border); border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: hidden;
  animation: mkh-pop .18s ease-out;
}
.mkh-panel[hidden] { display: none; }

.mkh-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px;
  background: var(--mkh-card); border-bottom: 1px solid var(--mkh-border); }
.mkh-avatar { width: 38px; height: 38px; border-radius: 12px; color: #fff; flex: none;
  background: linear-gradient(135deg, #38bdf8, #2563eb); display: flex; align-items: center; justify-content: center; }
.mkh-avatar svg { width: 22px; height: 22px; }
.mkh-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mkh-title strong { font-size: 16px; }
.mkh-title small { color: var(--mkh-dim); font-size: 12px; }
.mkh-iconbtn { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: transparent; color: var(--mkh-dim); display: flex; align-items: center; justify-content: center; }
.mkh-iconbtn:hover { background: rgba(255, 255, 255, .08); color: var(--mkh-text); }

.mkh-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mkh-msg { max-width: 88%; padding: 9px 12px; margin: 5px 0; border-radius: 16px;
  overflow-wrap: anywhere; word-break: break-word; }
.mkh-user { align-self: flex-end; background: var(--mkh-accent); color: var(--mkh-ink);
  border-bottom-right-radius: 5px; }
.mkh-bot { align-self: flex-start; background: var(--mkh-card); border: 1px solid var(--mkh-border);
  border-bottom-left-radius: 5px; }

.mkh-notice { display: flex; gap: 8px; align-items: flex-start;
  border-color: rgba(245, 158, 11, .55); background: rgba(245, 158, 11, .1); }
.mkh-noticeicon { flex: none; color: #f59e0b; margin-top: 1px; display: flex; }
.mkh-noticetext { min-width: 0; }

.mkh-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.mkh-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mkh-dim);
  animation: mkh-blink 1s infinite ease-in-out; }
.mkh-typing i:nth-child(2) { animation-delay: .15s; }
.mkh-typing i:nth-child(3) { animation-delay: .3s; }

.mkh-card { display: block; margin-top: 10px; padding: 10px 12px; text-decoration: none; color: inherit;
  border: 1px solid var(--mkh-border); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.mkh-card:hover { border-color: var(--mkh-accent); background: rgba(56, 189, 248, .08); }
.mkh-cardtag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mkh-accent); background: rgba(56, 189, 248, .14); border-radius: 8px; padding: 2px 8px; }
.mkh-cardtitle { display: block; margin-top: 6px; font-weight: 700; }
.mkh-cardtext { display: block; margin-top: 3px; font-size: 13px; color: var(--mkh-dim); }
.mkh-cardcta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 13px; font-weight: 700; color: var(--mkh-accent); }

.mkh-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.mkh-chipbtn { border: 1px solid var(--mkh-border); background: transparent; color: var(--mkh-text);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.mkh-chipbtn:hover { border-color: var(--mkh-accent); color: var(--mkh-accent); }

.mkh-form { display: flex; gap: 8px; padding: 0 12px 8px; }
.mkh-input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; color: var(--mkh-text);
  background: var(--mkh-card); border: 1px solid var(--mkh-border); }
.mkh-input::placeholder { color: var(--mkh-dim); }
.mkh-send { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--mkh-accent); color: var(--mkh-ink); display: flex; align-items: center; justify-content: center; }
.mkh-send:disabled, .mkh-input:disabled { opacity: .55; cursor: default; }
.mkh-note { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--mkh-dim); text-align: center; }

@keyframes mkh-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mkh-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); } 100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }
@keyframes mkh-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

@media (max-width: 640px) {
  .mkh-root { right: 12px; }
  .mkh-panel { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto; max-width: none; height: min(78vh, 640px); }
}
@media (prefers-reduced-motion: reduce) {
  .mkh-panel, .mkh-typing i, .mkh-fab, .mkh-dot { animation: none; transition: none; }
}
@media print { .mkh-root { display: none; } }
