

@font-face {
  font-family: 'Google Sans';
  src: url('/assets/fonts/frontend/GoogleSans-Regular.woff2') format('woff2'),
       url('/assets/fonts/frontend/GoogleSans-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('/assets/fonts/frontend/GoogleSans-Medium.woff2') format('woff2'),
       url('/assets/fonts/frontend/GoogleSans-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('/assets/fonts/frontend/GoogleSans-Bold.woff2') format('woff2'),
       url('/assets/fonts/frontend/GoogleSans-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('/assets/fonts/frontend/GoogleSans-Italic.woff2') format('woff2'),
       url('/assets/fonts/frontend/GoogleSans-Italic.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('/assets/fonts/frontend/GoogleSans-MediumItalic.woff2') format('woff2'),
       url('/assets/fonts/frontend/GoogleSans-MediumItalic.woff') format('woff');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('/assets/fonts/frontend/GoogleSans-BoldItalic.woff2') format('woff2'),
       url('/assets/fonts/frontend/GoogleSans-BoldItalic.woff') format('woff');
  font-weight: 700; font-style: italic; font-display: swap;
}

@font-face{ font-family:'NgocPhuMedia';
  src:url('../fonts/NgocPhuMedia-Font.woff2') format('woff2'),
      url('../fonts/NgocPhuMedia-Font.woff') format('woff');
  font-weight:500; font-style:normal; font-display:swap; }

:root {
  --npm-font: 'Google Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --npm-blue: #0d6efd;
  --npm-blue-dark: #0347b3;

  --npm-bg: #ffffff;
  --npm-bg-elevated: #ffffff;
  --npm-text: #1f2430;
  --npm-text-secondary: #7c8798;
  --npm-text-muted: #9aa3b2;
  --npm-border: #e3e7ee;
  --npm-border-strong: #d9dee6;
  --npm-quickbar-bg: #eef3fb;
  --npm-quickbar-border: #e3e7ee;
  --npm-quickbtn-bg: #ffffff;
  --npm-quickbtn-border: #cfe0fb;
  --npm-quickbtn-text: var(--npm-blue-dark);
  --npm-quickbtn-hover-bg: #e7f0ff;
  --npm-msg-bot-bg: #b9b9b908;
  --npm-msg-bot-border: #e3e7ee;
  --npm-msg-bot-text: #222222;
  --npm-input-bg: #ffffff;
  --npm-input-border: #d9dee6;
  --npm-input-text: #000000;
  --npm-inputbar-bg: #ffffff;
  --npm-inputbar-border: #e5e7eb;
  --npm-icon-btn-text: #7c8798;
  --npm-icon-btn-hover-bg: #eef2f7;
  --npm-note-bg: #ffffff;
  --npm-composer-bg: rgba(246,248,252,.62);
  --npm-composer-border: rgba(15,23,42,.16);
  --npm-composer-border-focus: rgba(13,110,253,.5);
  --npm-composer-shadow: 0 10px 30px -10px rgba(15,23,42,.22), 0 1px 3px rgba(15,23,42,.08);
  --npm-composer-shadow-focus: 0 12px 34px -10px rgba(15,23,42,.3), 0 1px 3px rgba(15,23,42,.1);
  --npm-composer-highlight: rgba(255,255,255,.9);
  --npm-composer-inset: rgba(255,255,255,.95);
  --npm-note-text: #9aa3b2;
  --npm-note-text-strong: #7d8798;
  --npm-image-thumb-border: #e3e7ee;
  --npm-page-msg-user-bg: #e8edf5;
  --npm-page-msg-user-text: #1a2233;
  --npm-page-typing-bg: #e8edf5;
  --npm-page-typing-text: #8a94a3;
  --npm-teaser-bg: rgba(255,255,255,.62);
  --npm-teaser-border: rgba(255,255,255,.55);
  --npm-teaser-text: #16233f;
  --npm-teaser-hover-bg: rgba(255,255,255,.72);
  --npm-teaser-close-bg: rgba(178,58,90,.16);
  --npm-teaser-close-color: #a8395f;
  --npm-teaser-close-hover-bg: rgba(178,58,90,.28);
  --npm-teaser-bg-solid: rgba(255,255,255,.94);

  --npm-header-bg: linear-gradient(135deg, var(--npm-blue), var(--npm-blue-dark));
  --npm-link-color: var(--npm-blue-dark);
  --npm-speak-bg: rgba(47,109,245,.1);
  --npm-speak-color: var(--npm-blue-dark);
  --npm-speak-hover-bg: rgba(47,109,245,.2);

  --npm-side-bg: #f7f9fc;
  --npm-side-border: #e3e7ee;
  --npm-side-text: #4b5567;
  --npm-side-text-hover: #16233f;
  --npm-side-hover-bg: #eef3fb;

  --npm-scrollbar-thumb: rgba(15,23,42,.16);
  --npm-scrollbar-thumb-hover: rgba(15,23,42,.30);
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

#npm-chat-window, #npm-chat-window *,
#npm-chat-page, #npm-chat-page *,
#npm-chat-launcher, #npm-chat-launcher * {
  box-sizing: border-box;
}

#npm-chat-launcher {
  position: fixed; bottom: 146px; right: 24px; z-index: 99999;
  width: 55px; height: 55px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #4f8dff 0%, #2f6df5 45%, #0347b3 100%);
  box-shadow: 0 4px 18px rgba(13,71,179,.4), 0 0 0 1px rgba(255,255,255,.06) inset;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; overflow: visible;
  transition: transform .25s ease;
  contain: layout style paint;
}
#npm-chat-launcher::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  box-shadow: 0 4px 26px rgba(111,108,255,.6);
  opacity: 0; z-index: -2; pointer-events: none;
  will-change: opacity;
  animation: npm-launcher-breathe 3.2s ease-in-out infinite;
}
#npm-chat-launcher:hover { transform: scale(1.08); }
#npm-chat-launcher::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, #6ea8ff, #8f6bff, #ff7ab8, #6ea8ff);
  filter: blur(5px); opacity: .6; z-index: -1;
  will-change: transform; transform: translateZ(0);
  animation: npm-ring-spin 5s linear infinite;
}
#npm-chat-launcher .npm-ai-icon { width: 30px; height: 30px; position: relative; z-index: 1; }
.npm-bubble-dot { animation: npm-dot-bounce 1.1s ease-in-out infinite; }
.npm-bubble-dot.d2 { animation-delay: .15s; }
.npm-bubble-dot.d3 { animation-delay: .3s; }
.npm-badge-spark { transform-origin: center; animation: npm-spark-twinkle 2s ease-in-out infinite; }

#npm-chat-teaser {
  position: fixed; z-index: 99998; 
  display: flex; align-items: flex-start; gap: 10px;
  max-width: min(288px, calc(100vw - 32px));
  padding: 12px 30px 12px 12px;
  border-radius: 20px;
  background: var(--npm-teaser-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--npm-teaser-border);
  box-shadow: 0 10px 34px -6px rgba(13,71,179,.28), 0 2px 10px rgba(20,30,60,.08),
    0 0 0 1px rgba(111,108,255,.14), inset 0 1px 0 rgba(255,255,255,.7);
  color: var(--npm-teaser-text);
  font-family: var(--npm-font);
  font-size: 13.5px; line-height: 1.45;
  cursor: pointer;
  transform-origin: bottom right;
  opacity: 0; transform: scale(.82) translateY(10px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
#npm-chat-teaser.npm-teaser-show { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
#npm-chat-teaser:hover { background: var(--npm-teaser-hover-bg); }
#npm-chat-teaser .npm-teaser-text { position: relative; z-index: 1; padding-top: 6px; }

.npm-teaser-avatar {
  position: relative; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, #4f8dff 0%, #2f6df5 45%, #0347b3 100%);
  box-shadow: 0 3px 10px rgba(13,71,179,.38), 0 0 0 1px rgba(255,255,255,.5);
}
.npm-teaser-avatar::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  box-shadow: 0 3px 16px rgba(111,108,255,.62);
  opacity: 0; z-index: -2; pointer-events: none;
  will-change: opacity;
  animation: npm-teaser-avatar-breathe 3.2s ease-in-out infinite;
}
.npm-teaser-avatar::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, #6ea8ff, #8f6bff, #ff7ab8, #6ea8ff);
  filter: blur(4px); opacity: .65; z-index: -1;
  will-change: transform; transform: translateZ(0);
  animation: npm-ring-spin 5s linear infinite;
}
.npm-teaser-avatar-icon { width: 19px; height: 19px; position: relative; z-index: 1; }
.npm-teaser-eye { transform-origin: center; animation: npm-teaser-eye-blink 4.2s ease-in-out infinite; }
.npm-teaser-eye.e2 { animation-delay: .08s; }
.npm-teaser-antenna { transform-origin: center; animation: npm-spark-twinkle 2.4s ease-in-out infinite; }
@keyframes npm-teaser-eye-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.15); }
}
@keyframes npm-teaser-avatar-breathe {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.npm-teaser-close {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: var(--npm-teaser-close-bg); color: var(--npm-teaser-close-color);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.npm-teaser-close svg { width: 14px; height: 14px; stroke-width: 2.4; }
.npm-teaser-close:hover { background: var(--npm-teaser-close-hover-bg); }
@media (prefers-reduced-motion: reduce) {
  #npm-chat-teaser { transition: opacity .3s ease; transform: none !important; }
  .npm-teaser-avatar, .npm-teaser-avatar::before, .npm-teaser-eye, .npm-teaser-antenna { animation: none !important; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #npm-chat-teaser { background: var(--npm-teaser-bg-solid); }
}
@media (max-width: 480px) {
  #npm-chat-teaser {
    font-size: 13px; padding: 11px 28px 11px 11px; gap: 9px;
    max-width: min(252px, calc(100vw - 24px));
  }
  .npm-teaser-avatar { width: 30px; height: 30px; }
  .npm-teaser-avatar-icon { width: 17px; height: 17px; }
}

@keyframes npm-ring-spin { to { transform: rotate(360deg); } }
@keyframes npm-launcher-breathe {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@keyframes npm-dot-bounce {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(-1.6px); opacity: 1; }
}
@keyframes npm-spark-twinkle {
  0%, 100% { opacity: .55; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.npm-aurora-burst {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  border-radius: inherit; pointer-events: none;
}
.npm-aurora-burst::before {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 110px; height: 110px; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(90,160,255,1), rgba(13,110,253,.65) 45%, rgba(90,160,255,0) 72%);
  filter: blur(22px);
  transform: scale(0); opacity: 0;
}
.npm-burst-play::before { animation: npm-burst-out 1.1s cubic-bezier(.16,1,.3,1) both; }
@keyframes npm-burst-out {
  0% { transform: scale(0); opacity: .95; }
  55% { opacity: .5; }
  100% { transform: scale(11); opacity: 0; }
}

.npm-aurora-burst.npm-burst-bottom::before {
  right: auto; bottom: 10px; left: 50%; transform: translateX(-50%) scale(0);
  width: 130px; height: 130px; filter: blur(26px);
}
.npm-burst-bottom.npm-burst-play::before {
  animation: npm-burst-out-center 1.3s cubic-bezier(.16,1,.3,1) both;
}

@keyframes npm-burst-out-center {
  0% { transform: translateX(-50%) scale(0); opacity: .9; }
  55% { opacity: .1; }
  100% { transform: translateX(-50%) scale(5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-burst-bottom.npm-burst-play::before { animation: none; }
  #npm-chat-launcher, #npm-chat-launcher::before, .npm-bubble-dot, .npm-badge-spark,
  .npm-burst-play::before {
    animation: none !important;
  }
}

.npm-aurora-burst.npm-burst-bottom::before { transition: opacity .4s ease; }
.npm-burst-bottom.npm-input-pulse::before {
  animation: npm-input-pulse 1.6s ease-in-out infinite;
}
@keyframes npm-input-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .55; }
  50% { transform: translateX(-50%) scale(1.2); opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-burst-bottom.npm-input-pulse::before { animation: none; opacity: .3; transform: translateX(-50%) scale(1); }
}

.npm-chat-header {
  position: relative; z-index: 1;
  background: var(--npm-header-bg); color: #fff;
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; transition: background .45s cubic-bezier(.4,0,.2,1);
}
.npm-chat-header strong { font-size: 14px; }
.npm-chat-header span { font-size: 11px; opacity: .85; display: block; }
.npm-chat-header-actions { display: flex; align-items: center; gap: 4px; }
.npm-chat-icon-btn {
  background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer;
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.npm-chat-icon-btn:hover { background: rgba(255,255,255,.24); }
.npm-chat-icon-btn svg { width: 15px; height: 15px; }
.npm-chat-close svg { width: 14px; height: 14px; color: #ffd9d9; }
.npm-chat-close:hover { background: rgba(255,100,100,.24); }

.npm-chat-quickbar {
  position: relative; z-index: 1;
  display: flex; gap: 6px; padding: 8px 10px; background: var(--npm-quickbar-bg);
  border-bottom: 1px solid var(--npm-quickbar-border); overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none; -ms-overflow-style: none;
  transition: -webkit-mask-image .2s ease, mask-image .2s ease;
}
.npm-chat-quickbar::-webkit-scrollbar { display: none; height: 0; }
.npm-chat-quickbar.npm-scroll-more-left:not(.npm-scroll-more-right) {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 100%);
}
.npm-chat-quickbar.npm-scroll-more-right:not(.npm-scroll-more-left) {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 26px, #000 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 26px, #000 100%);
}
.npm-chat-quickbar.npm-scroll-more-left.npm-scroll-more-right {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}
.npm-quick-btn, .npm-quick-btn:link, .npm-quick-btn:visited {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--npm-quickbtn-border) !important; background: var(--npm-quickbtn-bg) !important; color: var(--npm-quickbtn-text) !important;
  border-radius: 14px; padding: 5px 10px; font-family: inherit; font-size: 12px; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
}
.npm-quick-btn:hover, .npm-quick-btn:focus { background: var(--npm-quickbtn-hover-bg) !important; text-decoration: none !important; }
.npm-quick-btn span { color: inherit !important; }
.npm-quick-icon { width: 14px; height: 14px; flex-shrink: 0; }

.npm-chat-messages {
  position: relative; z-index: 1;
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 12px 12px 112px; background: transparent;
  margin-bottom: -88px;
  display: flex; flex-direction: column; gap: 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent calc(100% - 86px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent calc(100% - 86px));
  scrollbar-width: thin; scrollbar-color: var(--npm-scrollbar-thumb) transparent;
}
.npm-chat-messages::-webkit-scrollbar { width: 6px; }
.npm-chat-messages::-webkit-scrollbar-track { background: transparent; }
.npm-chat-messages::-webkit-scrollbar-thumb {
  background: var(--npm-scrollbar-thumb); border-radius: 999px;
  border: 1.5px solid transparent; background-clip: padding-box;
  transition: background-color .2s ease;
}
.npm-chat-messages::-webkit-scrollbar-thumb:hover { background: var(--npm-scrollbar-thumb-hover); background-clip: padding-box; }
.npm-chat-suggest, .npm-image-preview, .npm-chat-inputbar, .npm-chat-note { z-index: 2; }
#npm-chat-window .npm-jump-down,
#npm-chat-page .npm-jump-down {
  position: absolute; left: 50%; bottom: 96px; z-index: 3;
  width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--npm-composer-border); background: var(--npm-composer-bg);
  color: var(--npm-text-secondary);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 6px 20px rgba(15,23,42,.16), inset 0 1px 0 var(--npm-composer-inset);
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translate(-50%, 10px) scale(.86);
  transition: opacity .24s ease, transform .3s cubic-bezier(.16,1,.3,1), color .15s ease;
}
#npm-chat-window .npm-jump-down svg,
#npm-chat-page .npm-jump-down svg { width: 18px; height: 18px; display: block; }
#npm-chat-window .npm-jump-down.is-on,
#npm-chat-page .npm-jump-down.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
#npm-chat-window .npm-jump-down.is-on svg,
#npm-chat-page .npm-jump-down.is-on svg { animation: npm-jump-nudge 1.8s ease-in-out infinite; }
@keyframes npm-jump-nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@media (hover: hover) {
  #npm-chat-window .npm-jump-down:hover,
  #npm-chat-page .npm-jump-down:hover { color: var(--npm-text); }
}
@media (hover: none) {
  #npm-chat-window .npm-jump-down,
  #npm-chat-page .npm-jump-down { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  #npm-chat-window .npm-jump-down,
  #npm-chat-page .npm-jump-down { transition: opacity .2s ease; }
  #npm-chat-window .npm-jump-down.is-on svg,
  #npm-chat-page .npm-jump-down.is-on svg { animation: none; }
}
.npm-image-preview { background: var(--npm-note-bg); }
.npm-msg {
  max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px;
  line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
  animation: npm-msg-in .28s ease;
}
.npm-msg.user { align-self: flex-end; background: var(--npm-blue); color: #fff; border-bottom-right-radius: 3px; }
.npm-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: normal; overflow-wrap: break-word; }
.npm-msg.bot a { color: var(--npm-link-color); }
.npm-msg strong { font-weight: 700; }
.npm-msg p { margin: 0 0 8px; }
.npm-msg p:last-child { margin-bottom: 0; }
.npm-msg ul { margin: 0 0 8px; padding-left: 18px; }
.npm-msg ul:last-child { margin-bottom: 0; }
.npm-msg li { margin: 2px 0; }
.npm-steps { display: flex; flex-direction: column; margin: 4px 0 0; }
.npm-step { display: flex; gap: 10px; }
.npm-step-marker { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 22px; }
.npm-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  border: 1.5px solid var(--npm-text-secondary); color: var(--npm-text);
  background: var(--npm-bg-elevated);
  font-size: 11.5px; font-weight: 700; line-height: 1;
}
.npm-step:not(.npm-step-last) .npm-step-marker::after {
  content: ""; flex: 1 1 auto; min-height: 14px; width: 1.5px; margin-top: 3px;
  background-image: linear-gradient(var(--npm-border-strong), var(--npm-border-strong));
  background-repeat: repeat-y; background-size: 1.5px 5px;
}
.npm-step-content { flex: 1 1 auto; min-width: 0; padding-bottom: 14px; }
.npm-step-last .npm-step-content { padding-bottom: 0; }
.npm-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-bottom: 4px; padding-top: 1px; }
.npm-step-title { font-weight: 700; padding-top: 0; }
.npm-step-time {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
  background: var(--npm-bg-elevated); border: 1px solid var(--npm-border-strong);
  color: var(--npm-text-secondary); font-size: 11.5px; font-weight: 500; font-style: normal; margin: 0;
}
.npm-price-tag {
  display: inline-flex; align-items: center; padding: 1px 7.5px; margin: 0 1px;
  border-radius: 7px; border: 1px solid rgba(16, 185, 129, .28);
  background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(5, 150, 105, .07));
  color: #047857; font-size: .92em; font-weight: 700; line-height: 1.38;
  font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: baseline;
}
.npm-price-tag.npm-step-price {
  padding: 2px 9.5px; border-radius: 999px; font-size: 12.5px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, .1);
}
[data-npm-theme="dark"] .npm-price-tag {
  background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(5, 150, 105, .1));
  border-color: rgba(52, 211, 153, .32);
  color: #34d399;
}
@media (prefers-color-scheme: dark) {
  [data-npm-theme="auto"] .npm-price-tag {
    background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(5, 150, 105, .1));
    border-color: rgba(52, 211, 153, .32);
    color: #34d399;
  }
}
.npm-step-content p:first-of-type { margin-top: 0; }
.npm-msg.bot { align-self: flex-start; background: var(--npm-msg-bot-bg); color: var(--npm-msg-bot-text); border: 1px solid var(--npm-msg-bot-border); border-bottom-left-radius: 3px; }
.npm-msg.npm-msg-welcome > p:first-of-type {
  position: relative; overflow: hidden;
  margin-bottom: 10px; padding-bottom: 9px;
  font-size: 1.1em; font-weight: 700; line-height: 1.4;
  color: var(--npm-link-color);
}
.npm-msg.npm-msg-welcome > p:first-of-type::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: npmWelcomeShine 1.5s ease-out .6s both;
}
.npm-msg.npm-msg-welcome > p:first-of-type::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, #7c4dff, #22d3ee, transparent) 0 0 / 32% 100% no-repeat,
    linear-gradient(90deg, transparent, rgba(13,110,253,.38) 18%, rgba(124,77,255,.38) 55%, rgba(34,211,238,.32) 82%, transparent) 0 0 / 100% 100% no-repeat;
  background-position: -60% 0, 0 0; transform-origin: left center;
  animation: npmWelcomeLine .9s cubic-bezier(.2,.8,.2,1) both, npmWelcomeScan 3.6s ease-in-out 1s infinite;
}
@keyframes npmWelcomeLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes npmWelcomeScan { 0% { background-position: -60% 0, 0 0; } 65%, 100% { background-position: 160% 0, 0 0; } }
@keyframes npmWelcomeShine { from { left: -60%; } to { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .npm-msg.npm-msg-welcome > p:first-of-type::before { display: none; }
  .npm-msg.npm-msg-welcome > p:first-of-type::after { animation: none; }
}
.npm-msg.npm-msg-welcome { display: grid; grid-template-columns: auto 1fr; align-items: start; align-content: start; }
.npm-msg.npm-msg-welcome > p { grid-column: 2; }
.npm-msg.npm-msg-welcome > .npm-msg-actions,
.npm-msg.npm-msg-welcome > .npm-msg-time { grid-column: 1 / -1; }
.npm-sky { position: relative; grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 64px; height: 64px; margin: 0 12px 0 0; border-radius: 12px; overflow: hidden; animation: npmSkyIn .6s ease backwards; }
.npm-sky.npm-sky-fade { opacity: 0; transform: scale(.85); transition: opacity .4s ease, transform .4s ease; }
.npm-sky.npm-sky-gone { width: 0; height: 0; margin-right: 0; opacity: 0; transition: width .5s ease, margin .5s ease; }
.npm-sky.npm-sky-instant { transition: none; }
.npm-sky-sang { background: linear-gradient(180deg, #9fd8ff 0%, #ffe6b3 70%, #ffc27a 100%); }
.npm-sky-trua { background: linear-gradient(180deg, #4aa8ff 0%, #8fd0ff 100%); }
.npm-sky-chieu { background: linear-gradient(180deg, #ff9a6b 0%, #ffc27a 55%, #ffe2a8 100%); }
.npm-sky-toi { background: linear-gradient(180deg, #0b1030 0%, #1b2559 100%); }
.npm-sky-orb { position: absolute; top: 19px; left: 14%; width: 26px; height: 26px; border-radius: 50%; }
.npm-sky-orb::before {
  content: ""; position: absolute; inset: -15px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,236,150,.6) 0 7deg, transparent 7deg 30deg);
  -webkit-mask-image: radial-gradient(circle, transparent 36%, #000 40%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 36%, #000 40%, transparent 70%);
  animation: npmRays 16s linear infinite;
}
.npm-sky-sang .npm-sky-orb,
.npm-sky-trua .npm-sky-orb,
.npm-sky-chieu .npm-sky-orb {
  background: radial-gradient(circle at 35% 35%, #fff8c4, #ffd03a 62%, #ffb300);
  box-shadow: 0 0 18px 6px rgba(255,200,60,.55);
}
.npm-sky-sang .npm-sky-orb { animation: npmSunRise 2.4s cubic-bezier(.2,.8,.2,1) both, npmOrbGlow 3.2s ease-in-out 2.4s infinite alternate; }
.npm-sky-trua .npm-sky-orb { left: calc(50% - 13px); top: 14px; animation: npmOrbGlow 2.6s ease-in-out infinite alternate; }
.npm-sky-chieu .npm-sky-orb {
  left: 56%; top: 12px;
  background: radial-gradient(circle at 35% 35%, #fff0c0, #ff9d3d 65%, #ff7a1a);
  box-shadow: 0 0 20px 7px rgba(255,140,50,.55);
  animation: npmSunSet 7s ease-in-out both;
}
.npm-sky-toi .npm-sky-orb {
  left: 58%; top: 13px; width: 24px; height: 24px; background: transparent;
  box-shadow: inset -7px -3px 0 0 #f6f2c8;
  filter: drop-shadow(0 0 7px rgba(246,242,200,.75));
  animation: npmMoonIn 1.4s ease-out both, npmMoonBob 5s ease-in-out 1.4s infinite alternate;
}
.npm-sky-toi .npm-sky-orb::before { display: none; }
.npm-sky-cloud { position: absolute; width: 34px; height: 11px; border-radius: 11px; background: rgba(255,255,255,.88); animation: npmCloud 19s linear infinite; }
.npm-sky-cloud::before,
.npm-sky-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.npm-sky-cloud::before { left: 5px; top: -6px; width: 15px; height: 15px; }
.npm-sky-cloud::after { left: 16px; top: -9px; width: 19px; height: 19px; }
.npm-sky-cloud.c1 { top: 40px; left: -22%; animation-delay: -5s; }
.npm-sky-cloud.c2 { top: 14px; left: -22%; opacity: .7; transform: scale(.75); animation-duration: 27s; animation-delay: -12s; }
.npm-sky-toi .npm-sky-cloud { display: none; }
.npm-sky-star, .npm-sky-shoot { display: none; }
.npm-sky-toi .npm-sky-star, .npm-sky-toi .npm-sky-shoot { display: block; }
.npm-sky-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 5px 1px rgba(255,255,255,.8); animation: npmTwinkle 2.6s ease-in-out infinite; }
.npm-sky-star.s1 { left: 8%; top: 14px; }
.npm-sky-star.s2 { left: 22%; top: 38px; animation-delay: .5s; }
.npm-sky-star.s3 { left: 36%; top: 10px; animation-delay: 1s; }
.npm-sky-star.s4 { left: 52%; top: 30px; animation-delay: 1.5s; }
.npm-sky-star.s5 { left: 62%; top: 12px; animation-delay: .8s; }
.npm-sky-star.s6 { left: 90%; top: 42px; animation-delay: 1.9s; }
.npm-sky-shoot { position: absolute; top: 8px; left: 4%; width: 44px; height: 1.5px; background: linear-gradient(90deg, transparent, #fff); opacity: 0; animation: npmShoot 5.5s ease-in 2s infinite; }
@keyframes npmSkyIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes npmRays { to { transform: rotate(360deg); } }
@keyframes npmSunRise { from { transform: translateY(54px); } to { transform: translateY(0); } }
@keyframes npmSunSet { from { transform: translateY(-8px); } to { transform: translateY(16px); } }
@keyframes npmOrbGlow { from { box-shadow: 0 0 14px 4px rgba(255,200,60,.45); } to { box-shadow: 0 0 24px 9px rgba(255,200,60,.7); } }
@keyframes npmMoonIn { from { opacity: 0; transform: translateY(-26px) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes npmMoonBob { to { transform: translateY(4px); } }
@keyframes npmCloud { from { left: -22%; } to { left: 108%; } }
@keyframes npmTwinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes npmShoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(25deg); }
  4% { opacity: 1; }
  14%, 100% { opacity: 0; transform: translate(150px, 62px) rotate(25deg); }
}
@media (prefers-reduced-motion: reduce) {
  .npm-sky, .npm-sky *, .npm-sky *::before { animation: none !important; }
  .npm-sky { transition: none !important; }
  .npm-sky-shoot { display: none !important; }
}
@media (max-width: 600px) {
  .npm-msg.npm-msg-welcome { max-width: 100%; }
  .npm-msg.npm-msg-welcome > p:first-of-type { min-width: 0; font-size: .94em; white-space: nowrap; text-overflow: ellipsis; }
  .npm-sky { width: 52px; height: 52px; margin-right: 10px; border-radius: 10px; }
  .npm-sky-cloud.c1 { top: 32px; }
  .npm-sky-chieu .npm-sky-orb { left: 46%; }
  .npm-sky-toi .npm-sky-orb { left: 50%; }
}
.npm-msg.typing {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 12.5px; font-style: normal; line-height: normal;
  color: var(--npm-text-secondary); opacity: 1;
  gap: 6px;
}
.npm-wave-canvas {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
}
@keyframes npm-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes npm-typing-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.npm-chat-tip {
  align-self: center; max-width: 90%; margin: 2px 0 6px;
  font-size: 12px; line-height: 1.4; text-align: center; color: var(--npm-text-muted);
  animation: npm-msg-in .28s ease;
}
@media (prefers-reduced-motion: reduce) {
  .npm-msg { animation: none; }
  .npm-msg.typing { animation: none; opacity: .85; }
}

.npm-chat-inputbar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 2px;
  margin: 0 10px 10px; padding: 6px 6px 6px 12px;
  border: 1px solid var(--npm-composer-border); border-radius: 26px;
  background: linear-gradient(180deg, var(--npm-composer-highlight), transparent 55%), var(--npm-composer-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%) contrast(112%);
  backdrop-filter: blur(24px) saturate(180%) contrast(112%);
  box-shadow: var(--npm-composer-shadow), inset 0 1px 0 var(--npm-composer-inset), inset 0 -1px 0 rgba(0,0,0,.03);
  flex-shrink: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  transform-origin: center;
  animation: npm-inputbar-reveal .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes npm-inputbar-reveal {
  0%   { transform: scaleX(.42); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-chat-inputbar { animation: none; }
}
.npm-chat-inputbar:focus-within {
  border-color: var(--npm-composer-border-focus);
  box-shadow: var(--npm-composer-shadow-focus), inset 0 1px 0 var(--npm-composer-inset), inset 0 -1px 0 rgba(0,0,0,.03);
}
.npm-chat-input {
  flex: 1; border: none; border-radius: 16px; padding: 9px 4px;
  font-size: 13.5px; line-height: 1.4; outline: none; resize: none; max-height: 160px; min-height: auto; color: var(--npm-input-text);
  background: transparent !important;
  font-family: inherit; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  transition: .5s ease;
}
.npm-chat-input.npm-input-multiline { border-radius: 14px; }
.npm-chat-input::-webkit-scrollbar { display: none; width: 0; height: 0; }
.npm-chat-send {
  background: var(--npm-blue); color: #fff; border: none; border-radius: 50%;
  width: 34px; height: 34px; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .12s ease;
}
.npm-chat-send:hover:not(:disabled) { background: var(--npm-blue-dark); transform: scale(1.06); }
.npm-chat-send:active:not(:disabled) { transform: scale(.93); }
.npm-chat-send:disabled { opacity: .45; cursor: not-allowed; }
.npm-chat-send svg { width: 15px; height: 15px; fill: #fff; }

.npm-chat-tools, .npm-chat-attach, .npm-chat-mic {
  background: transparent; border: none; color: var(--npm-icon-btn-text); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.npm-chat-attach[hidden], .npm-chat-mic[hidden] { display: none; }
.npm-chat-tools:hover, .npm-chat-attach:hover, .npm-chat-mic:hover { background: var(--npm-icon-btn-hover-bg); color: var(--npm-blue); }
.npm-chat-tools:active, .npm-chat-attach:active, .npm-chat-mic:active { transform: scale(.92); }
.npm-chat-tools svg, .npm-chat-attach svg, .npm-chat-mic svg { width: 17px; height: 17px; }
.npm-chat-tools[aria-expanded="true"] { background: var(--npm-icon-btn-hover-bg); color: var(--npm-blue); }
.npm-chat-tools[aria-expanded="true"] svg { transform: rotate(18deg) scale(1.08); }
.npm-chat-tools svg { transition: transform .2s ease; }
.npm-chat-inputbar.npm-tools-open { z-index: 6; }
.npm-tools-panel {
  position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 7;
  box-sizing: border-box; width: min(100%, 490px); max-height: min(620px, 78vh); overflow-y: auto; overscroll-behavior: contain; padding: 18px;
  scrollbar-width: thin; scrollbar-color: var(--npm-border-strong) transparent;
  border: 1px solid var(--npm-composer-border, var(--npm-border)); border-radius: 22px;
  background: var(--npm-bg-elevated); color: var(--npm-text);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .22), 0 4px 16px -2px rgba(15, 23, 42, .08), inset 0 1px 0 var(--npm-composer-inset, rgba(255, 255, 255, .6));
  transform-origin: bottom left; animation: npmToolsIn .24s cubic-bezier(.16, 1, .3, 1) both;
}
.npm-tools-panel[hidden], .npm-tools-view[hidden] { display: none; }
@keyframes npmToolsIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.npm-tools-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.npm-tools-title { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--npm-text-secondary); }
.npm-tools-search-wrap {
  position: relative; display: flex; align-items: center; flex: 1; max-width: 220px;
}
.npm-tools-search-wrap svg {
  position: absolute; left: 10px; width: 14px; height: 14px; color: var(--npm-text-muted); pointer-events: none;
}
.npm-tools-search {
  width: 100%; height: 32px; padding: 0 10px 0 30px; box-sizing: border-box;
  border: 1px solid var(--npm-border-strong); border-radius: 10px; outline: none;
  background: var(--npm-input-bg); color: var(--npm-input-text); font: inherit; font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.npm-tools-search::placeholder { color: var(--npm-text-muted); }
.npm-tools-search:focus { border-color: var(--npm-blue); box-shadow: 0 0 0 2px rgba(13, 110, 253, .12); }
.npm-tools-empty { padding: 18px 8px; text-align: center; font-size: 12.5px; color: var(--npm-text-secondary); }
.npm-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.npm-tools-grid > .npm-tool-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.npm-tool-tile {
  display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 12px; text-align: left;
  border: 1px solid var(--npm-border); border-radius: 16px; background: var(--npm-bg); color: inherit;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .03);
  font-family: inherit; cursor: pointer;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.npm-tool-tile:hover {
  background: var(--npm-quickbtn-hover-bg); border-color: var(--npm-quickbtn-border);
  box-shadow: 0 6px 16px -4px rgba(13, 110, 253, .12); transform: translateY(-1px);
}
.npm-tool-tile:active { transform: scale(.97); }
.npm-tool-ico {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 12px; color: #fff; box-shadow: 0 4px 10px -2px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.npm-tool-ico svg { width: 18px; height: 18px; }
.npm-tool-ico.t-domain, .npm-tools-head-ico.t-domain { background: linear-gradient(135deg, #0d6efd, #4f9bff); }
.npm-tool-ico.t-compare { background: linear-gradient(135deg, #7c4dff, #b18cff); }
.npm-tool-ico.t-quote, .npm-tools-head-ico.t-quote { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.npm-tool-ico.t-joke { background: linear-gradient(135deg, #ec4899, #fb7ab8); }
.npm-tool-txt { min-width: 0; }
.npm-tool-txt b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: -.1px; }
.npm-tool-txt small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: var(--npm-text-secondary); }
.npm-tools-panel::-webkit-scrollbar { width: 6px; }
.npm-tools-panel::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.npm-tools-panel::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--npm-border-strong); }
.npm-tools-group + .npm-tools-group { margin-top: 18px; }
.npm-tools-group .npm-slash-head { margin: 0 4px 8px; }
.npm-tools-backdrop { display: none; }
@media (max-width: 700px) {
  .npm-tools-backdrop,
  #npm-chat-page .npm-tools-backdrop,
  #npm-chat-window .npm-tools-backdrop {
    position: fixed; inset: 0; z-index: 59; display: block;
    background: rgba(2, 6, 23, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 1; visibility: visible;
    transition: opacity .44s cubic-bezier(.22, 1, .36, 1), visibility 0s;
    will-change: opacity;
  }
  .npm-tools-backdrop[hidden],
  #npm-chat-page .npm-tools-backdrop[hidden],
  #npm-chat-window .npm-tools-backdrop[hidden] {
    display: block !important; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .4s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .4s;
  }
  .npm-tools-panel,
  #npm-chat-page .npm-tools-panel,
  #npm-chat-window .npm-tools-panel {
    position: fixed; top: 0; bottom: 0; left: 0; right: auto; z-index: 60; display: block;
    width: min(88vw, 390px); height: 100vh; height: 100dvh; max-height: 100dvh;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px));
    border-width: 0 1px 0 0; border-radius: 0 24px 24px 0;
    box-shadow: 16px 0 48px rgba(2, 6, 23, .28);
    transform: translate3d(0, 0, 0); transform-origin: left center; visibility: visible;
    animation: none;
    transition: transform .44s cubic-bezier(.22, 1, .36, 1), visibility 0s, box-shadow .44s ease;
    will-change: transform;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .npm-tools-panel[hidden],
  #npm-chat-page .npm-tools-panel[hidden],
  #npm-chat-window .npm-tools-panel[hidden] {
    display: block !important;
    transform: translate3d(-104%, 0, 0);
    visibility: hidden; pointer-events: none; box-shadow: none;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .4s, box-shadow .4s ease;
  }
  .npm-tools-panel::before {
    content: ""; position: sticky; top: 50%; float: right; width: 4px; height: 38px;
    margin-right: -10px; transform: translateY(-50%); border-radius: 4px;
    background: var(--npm-border-strong); opacity: .55; pointer-events: none;
  }
  .npm-tools-top { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
  .npm-tools-title { text-align: left; font-size: 12px; }
  .npm-tools-search-wrap { max-width: 100%; }
  .npm-tools-search { height: 36px; font-size: 13.5px; border-radius: 12px; }
  .npm-tool-tile { min-height: 54px; padding: 9px 11px; }
  .npm-tools-grid { gap: 8px; }
  .npm-slash-menu > .npm-tools-title { display: none; }
  .npm-slash-menu { width: 100%; max-height: min(320px, 46vh); padding: 12px 10px 10px; }
  .npm-slash-menu .npm-slash-cols { display: block; }
  .npm-slash-menu .npm-slash-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .npm-slash-menu .npm-slash-group + .npm-slash-group { margin-top: 12px; }
  .npm-slash-menu .npm-slash-head { grid-column: 1 / -1; margin: 0 4px 0; }
  .npm-slash-menu .npm-slash-group > .npm-slash-item:last-child:nth-child(even) { grid-column: 1 / -1; }
  .npm-slash-menu .npm-slash-item { min-height: 46px; padding: 6px 8px; border: 1px solid var(--npm-border); border-radius: 12px; }
  .npm-slash-menu .npm-slash-item.npm-slash-on { border-color: var(--npm-quickbtn-border); }
  .npm-slash-menu .npm-tool-ico { width: 30px; height: 30px; border-radius: 10px; }
  .npm-slash-menu .npm-tool-ico svg { width: 16px; height: 16px; }
  .npm-slash-menu .npm-tool-txt b { font-size: 12.5px; }
  .npm-slash-menu .npm-tool-txt small, .npm-slash-menu .npm-slash-key { display: none; }
}
@media (hover: none) {
  .npm-slash-menu > .npm-tools-title { display: none; }
}
.npm-followups {
  position: relative; z-index: 2; flex-shrink: 0; box-sizing: border-box;
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 14px 8px; padding-bottom: 2px;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.npm-followups::-webkit-scrollbar { display: none; }
#npm-chat-page .npm-followups { max-width: 880px; width: calc(100% - 28px); margin: 0 auto 8px; }
.npm-follow-chip {
  flex-shrink: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; box-sizing: border-box; padding: 8px 14px;
  border: 1px solid var(--npm-quickbtn-border); border-radius: 18px;
  background: var(--npm-bg-elevated); color: var(--npm-quickbtn-text); box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
  font: inherit; font-size: 13px; line-height: 1.35; text-align: left; cursor: pointer;
  opacity: 0; animation: npmChipIn .34s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 80ms);
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.npm-follow-chip:hover { background: var(--npm-quickbtn-hover-bg); border-color: var(--npm-blue); }
.npm-follow-chip:active { transform: scale(.97); }
.npm-follow-ico { display: flex; flex-shrink: 0; color: var(--npm-blue); }
.npm-follow-ico svg { width: 15px; height: 15px; }
@keyframes npmChipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  #npm-chat-page .npm-followups { width: calc(100% - 20px); }
  .npm-follow-chip { font-size: 13px; padding: 8px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-follow-chip { opacity: 1; animation: none; }
}
.npm-tools-head {
  display: flex; align-items: center; gap: 9px; margin: -2px 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--npm-border); font-size: 14px; font-weight: 700; letter-spacing: -.15px;
}
.npm-tools-head-ico {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 9px; color: #fff; box-shadow: 0 3px 8px -2px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.npm-tools-head-ico svg { width: 15px; height: 15px; }
.npm-tools-back {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: -4px;
  border: 1px solid var(--npm-border); border-radius: 10px; background: var(--npm-bg); color: var(--npm-icon-btn-text);
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.npm-tools-back:hover { background: var(--npm-icon-btn-hover-bg); border-color: var(--npm-quickbtn-border); color: var(--npm-blue); }
.npm-tools-back:active { transform: scale(.94); }
.npm-tools-back svg { width: 16px; height: 16px; }
.npm-tools-label {
  display: flex; align-items: center; gap: 6px; margin: 0 2px 7px;
  font-size: 12px; font-weight: 600; color: var(--npm-text-secondary);
}
.npm-tools-sublabel { font-weight: 400; font-size: 11px; opacity: .8; }
.npm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.npm-chip {
  flex-shrink: 0; white-space: nowrap;
  padding: 6px 12px; border: 1px solid var(--npm-border-strong); border-radius: 12px;
  background: var(--npm-bg); color: var(--npm-text); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.npm-chip:hover {
  background: var(--npm-quickbtn-hover-bg); border-color: var(--npm-quickbtn-border); color: var(--npm-quickbtn-text);
  transform: translateY(-1px);
}
.npm-chip:active { transform: scale(.96); }
.npm-chip.npm-chip-on {
  background: linear-gradient(135deg, var(--npm-blue), #2563eb); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px -2px rgba(13, 110, 253, .42), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.npm-tools-field { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.npm-tools-input {
  flex: 1; width: 100%; min-width: 0; box-sizing: border-box; height: 40px; padding: 0 14px;
  border: 1px solid var(--npm-border-strong); border-radius: 13px; outline: none;
  background: var(--npm-input-bg); color: var(--npm-input-text); font: inherit; font-size: 13px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.npm-brand-input, .npm-palette-input, .npm-sitemap-input { margin-bottom: 13px; }
.npm-tools-input::placeholder { color: var(--npm-text-muted); }
.npm-tools-input:hover:not(:focus) { border-color: var(--npm-text-muted); }
.npm-tools-input:focus {
  border-color: var(--npm-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .14), inset 0 1px 2px rgba(15, 23, 42, .02);
}
.npm-tools-submit {
  flex-shrink: 0; height: 40px; padding: 0 16px; border: none; border-radius: 13px;
  background: linear-gradient(135deg, var(--npm-blue), #1d4ed8); color: #fff;
  box-shadow: 0 4px 12px -2px rgba(13, 110, 253, .38), inset 0 1px 0 rgba(255, 255, 255, .2);
  font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform .14s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease;
}
.npm-tools-submit:hover:not(:disabled) {
  filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 6px 16px -2px rgba(13, 110, 253, .48), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.npm-tools-submit:active:not(:disabled) { transform: scale(.97); }
.npm-tools-submit:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.npm-tools-hint {
  margin-top: 10px; padding: 8px 11px; border-radius: 11px;
  background: var(--npm-side-bg); border: 1px solid var(--npm-border);
  font-size: 11.5px; line-height: 1.45; color: var(--npm-text-secondary);
}
.npm-domain-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(max(300px, min-content), 1fr)); gap: 8px;
  min-width: 240px; width: 100%; max-width: 840px; margin-top: 10px;
}
#npm-chat-window .npm-domain-list { grid-template-columns: 1fr; }
.npm-msg.npm-has-domains { width: 100%; }
.npm-msg .npm-domain-list { margin-bottom: 10px; }
.npm-msg ul.npm-domain-pending, .npm-msg ol.npm-domain-pending { list-style: none; padding-left: 0; margin: 10px 0; }
.npm-msg .npm-domain-pending > li {
  box-sizing: border-box; height: 42px; margin: 0 0 8px; overflow: hidden; color: transparent;
  border: 1px solid var(--npm-border); border-radius: 13px; background: var(--npm-bg-elevated);
  animation: npm-domain-pulse 1.1s ease-in-out infinite;
}
.npm-msg .npm-domain-pending > li:last-child { margin-bottom: 0; }
.npm-msg .npm-domain-pending > li * { visibility: hidden; }
@keyframes npm-domain-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
#npm-chat-window .npm-domain-row { min-width: 0; padding: 6px 10px; gap: 6px; }
#npm-chat-window .npm-domain-name { min-width: 0; overflow-x: auto; scrollbar-width: none; }
#npm-chat-window .npm-domain-name::-webkit-scrollbar { display: none; height: 0; }
.npm-domain-row {
  display: flex; align-items: center; box-sizing: border-box; min-height: 40px; min-width: min-content; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--npm-border); border-radius: 13px; background: var(--npm-bg-elevated);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .03); font-size: 13px; white-space: nowrap;
  transition: border-color .15s ease, transform .12s ease;
}
.npm-domain-row.s-available:hover { border-color: rgba(22, 163, 74, .4); }
.npm-domain-name {
  flex: 1 1 auto; min-width: max-content; font-weight: 600; white-space: nowrap;
}
.npm-domain-price {
  flex-shrink: 0; padding: 2px 8px; border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, .26);
  background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(5, 150, 105, .06));
  color: #047857; font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.npm-domain-row.s-taken .npm-domain-price {
  border-color: var(--npm-border); background: var(--npm-side-bg); color: var(--npm-text-muted); font-weight: 500;
}
#npm-chat-window[data-npm-theme="dark"] .npm-domain-row:not(.s-taken) .npm-domain-price,
#npm-chat-page[data-npm-theme="dark"] .npm-domain-row:not(.s-taken) .npm-domain-price {
  background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(5, 150, 105, .1));
  border-color: rgba(52, 211, 153, .32); color: #34d399;
}
@media (prefers-color-scheme: dark) {
  #npm-chat-window:not([data-npm-theme="light"]) .npm-domain-row:not(.s-taken) .npm-domain-price,
  #npm-chat-page:not([data-npm-theme="light"]) .npm-domain-row:not(.s-taken) .npm-domain-price {
    background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(5, 150, 105, .1));
    border-color: rgba(52, 211, 153, .32); color: #34d399;
  }
}
#npm-chat-window .npm-domain-price { padding: 2px 6px; font-size: 11px; }
#npm-chat-window .npm-domain-badge { padding: 3px 7px; font-size: 10.5px; }
#npm-chat-window .npm-domain-reg { padding: 4px 10px; font-size: 11px; }
.npm-domain-badge { flex-shrink: 0; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.npm-domain-row.s-available .npm-domain-badge { background: rgba(22,163,74,.15); color: #16a34a; }
.npm-domain-row.s-taken .npm-domain-badge { background: rgba(239,68,68,.14); color: #ef4444; }
.npm-domain-row.s-unknown .npm-domain-badge { background: rgba(148,163,184,.2); color: #94a3b8; }
.npm-domain-reg {
  flex-shrink: 0; padding: 5px 12px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--npm-blue), #1d4ed8); color: #fff;
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 3px 8px -2px rgba(13, 110, 253, .38); transition: filter .15s ease, transform .12s ease;
}
.npm-domain-reg:hover { filter: brightness(1.07); transform: translateY(-1px); }
.npm-domain-reg:active { transform: scale(.96); }
.npm-domain-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.npm-domain-act {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border: 1px solid var(--npm-quickbtn-border); border-radius: 14px;
  background: var(--npm-quickbtn-bg); color: var(--npm-quickbtn-text);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.npm-domain-act svg { width: 14px; height: 14px; }
.npm-domain-act:hover { background: var(--npm-quickbtn-hover-bg); border-color: var(--npm-blue); transform: translateY(-1px); }
.npm-domain-act:active { transform: scale(.96); }
.npm-color-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 5px; margin: 0 2px;
  border: 1px solid var(--npm-border-strong); border-radius: 8px;
  background: var(--npm-bg-elevated); color: var(--npm-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; font-weight: 600; line-height: 1.35; vertical-align: baseline;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.npm-color-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, .88);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .28), 0 1px 2px rgba(15, 23, 42, .16);
  flex-shrink: 0;
}
.npm-inline-domains {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 6px; vertical-align: middle;
}
.npm-inline-domain-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px 2px 8px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.3;
  border: 1px solid var(--npm-border); background: var(--npm-bg-soft);
}
.npm-inline-domain-pill.is-available,
.npm-inline-domain-pill.is-taken {
  gap: 6px; padding: 0; border: 0; background: transparent;
}
.npm-inline-domain-lbl { padding: 3px 9px; border-radius: 999px; }
.npm-inline-domain-pill.is-available .npm-inline-domain-lbl { background: rgba(22, 163, 74, .12); color: #16a34a; }
.npm-inline-domain-pill.is-taken .npm-inline-domain-lbl { background: rgba(220, 38, 38, .1); color: #dc2626; }
.npm-inline-domain-reg {
  padding: 4px 12px; font-size: 11.5px; line-height: 1.3; border-radius: 999px;
  box-shadow: 0 2px 6px -2px rgba(13, 110, 253, .45);
}
a.npm-domain-act { text-decoration: none !important; }
.npm-domain-act-shop {
  border-color: transparent; background: linear-gradient(135deg, var(--npm-blue), #1d4ed8); color: #fff !important;
  box-shadow: 0 4px 12px -4px rgba(13, 110, 253, .55);
}
.npm-domain-act-shop:hover { background: linear-gradient(135deg, var(--npm-blue), #1d4ed8); border-color: transparent; filter: brightness(1.07); }
@media (max-width: 680px) {
  .npm-domain-list { grid-template-columns: 1fr; }
  .npm-domain-row { min-width: 0; }
  .npm-domain-name { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .npm-domain-name::-webkit-scrollbar { display: none; height: 0; }
  .npm-tools-input { font-size: 13.5px; }
  .npm-chips { gap: 5px; margin-bottom: 12px; }
  .npm-chip { padding: 6px 10px; font-size: 12px; }
  .npm-tools-submit { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-tools-panel, .npm-tools-backdrop { animation: none; }
}
@media (max-width: 700px) {
  .npm-tools-grid { grid-template-columns: 1fr; gap: 8px; }
  .npm-tools-grid > .npm-tool-tile:last-child:nth-child(odd) { grid-column: auto; }
  .npm-tool-tile { min-height: 52px; }
  .npm-tool-txt b, .npm-tool-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .npm-tools-panel:not([data-present="sheet"]) .npm-tools-view:not([data-view="menu"]):not([hidden]) {
    display: flex; flex-direction: column; min-height: 100%;
  }
  .npm-tools-panel:not([data-present="sheet"]) .npm-tools-view:not([data-view="menu"]) > .npm-tools-head { flex-shrink: 0; }
  .npm-tools-panel:not([data-present="sheet"]) .npm-tools-view:not([data-view="menu"]) > .npm-tools-head + * { margin-top: auto; }
  .npm-tools-panel:not([data-present="sheet"]) .npm-tools-view:not([data-view="menu"]) > .npm-tools-field:last-child,
  .npm-tools-panel:not([data-present="sheet"]) .npm-tools-view:not([data-view="menu"]) > .npm-tools-hint:last-child { flex-shrink: 0; }
}
@media (max-width: 700px) {
  #npm-chat-window .npm-tools-panel[data-present="sheet"] {
    top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: auto; max-height: 88vh; max-height: 88dvh;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0; border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 48px rgba(2, 6, 23, .28);
    transform: translate3d(0, 0, 0); transform-origin: center bottom;
  }
  #npm-chat-window .npm-tools-panel[data-present="sheet"][hidden] { transform: translate3d(0, 104%, 0); }
  #npm-chat-window .npm-tools-panel[data-present="sheet"]::before {
    content: ""; position: static; display: block; float: none; width: 2.5rem; height: 4px; margin: 0 auto 12px;
    transform: none; border-radius: 4px; background: var(--npm-border-strong); opacity: .55; pointer-events: none;
  }
}
.npm-tool-ico.t-photo { background: linear-gradient(135deg, #0ea5a4, #34d3c2); }
.npm-tool-ico.t-voice { background: linear-gradient(135deg, #ef4444, #fb7185); }
.npm-tool-ico.t-contact { background: linear-gradient(135deg, #16a34a, #4ade80); }
.npm-tool-ico.t-price { background: linear-gradient(135deg, #f97316, #fb923c); }
.npm-tool-ico.t-templates { background: linear-gradient(135deg, #6366f1, #818cf8); }
.npm-tool-ico.t-services { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.npm-tool-ico.t-brand, .npm-tools-head-ico.t-brand { background: linear-gradient(135deg, #eab308, #facc15); }
.npm-tool-ico.t-palette, .npm-tools-head-ico.t-palette { background: linear-gradient(135deg, #db2777, #f472b6); }
.npm-tool-ico.t-sitemap, .npm-tools-head-ico.t-sitemap { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.npm-tool-ico.t-translate { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.npm-tool-ico.t-clear { background: linear-gradient(135deg, #64748b, #94a3b8); }
.npm-tool-ico.t-light { background: linear-gradient(135deg, #f59e0b, #fcd34d); }
.npm-tool-ico.t-policy { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.npm-tool-ico.t-compress { background: linear-gradient(135deg, #65a30d, #a3e635); }
.npm-tool-ico.t-install { background: linear-gradient(135deg, #e11d48, #fb7185); }
.npm-tool-ico.t-guide { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.npm-tool-ico.t-dark { background: linear-gradient(135deg, #334155, #64748b); }
.npm-slash-menu {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 7;
  box-sizing: border-box; width: min(100%, 400px); max-height: min(440px, 66vh); overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px 12px;
  scrollbar-width: thin; scrollbar-color: var(--npm-border-strong) transparent;
  border: 1px solid var(--npm-border); border-radius: 18px;
  background: var(--npm-bg-elevated); color: var(--npm-text);
  box-shadow: 0 18px 40px -12px rgba(15,23,42,.28), 0 2px 8px rgba(15,23,42,.08);
  transform-origin: bottom left; animation: npmToolsIn .22s cubic-bezier(.2,.8,.2,1) both;
}
.npm-slash-menu[hidden] { display: none; }
.npm-chat-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npm-slash-menu::-webkit-scrollbar { width: 6px; }
.npm-slash-menu::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.npm-slash-menu::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--npm-border-strong); }
.npm-slash-menu::-webkit-scrollbar-thumb:hover { background: var(--npm-text-muted); }
.npm-slash-head { margin: 0 8px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--npm-blue); }
.npm-slash-group { display: flex; flex-direction: column; gap: 3px; }
.npm-slash-menu.npm-slash-wide { width: 100%; max-width: 880px; }
.npm-slash-menu .npm-slash-cols { padding: 0 2px; }
.npm-slash-menu > .npm-tools-title { margin: 4px 8px 14px; }
.npm-slash-wide .npm-slash-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.npm-slash-wide .npm-slash-group { min-width: 0; }
.npm-slash-wide .npm-slash-group + .npm-slash-group { padding-left: 18px; border-left: 1px solid var(--npm-border); }
.npm-slash-menu.npm-slash-wide { padding: 16px 18px 14px; max-height: min(640px, 78vh); }
.npm-slash-wide .npm-slash-item { padding: 7px 10px; }
.npm-slash-wide .npm-tool-txt { flex: 1; }
.npm-slash-wide .npm-tool-txt b, .npm-slash-wide .npm-tool-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npm-slash-wide .npm-slash-key { padding: 2px 7px; font-size: 10.5px; }
.npm-slash-item {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 6px 8px;
  border: none; border-radius: 12px; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.npm-slash-item:hover, .npm-slash-item.npm-slash-on { background: var(--npm-quickbtn-hover-bg); }
.npm-slash-key {
  flex-shrink: 0; margin-left: auto; padding: 2px 8px; border-radius: 8px;
  background: var(--npm-icon-btn-hover-bg); color: var(--npm-text-secondary); font-size: 11px; font-weight: 600;
}
.npm-chat-tip {
  position: relative; z-index: 2; flex-shrink: 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 2px; margin: 0 14px 6px;
  animation: npmToolsIn .35s cubic-bezier(.2,.8,.2,1) both;
}
#npm-chat-page .npm-chat-tip { max-width: 880px; width: calc(100% - 28px); margin: 0 auto 8px; }
.npm-tip-main {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 12px;
  border: 1px solid var(--npm-quickbtn-border); border-radius: 16px;
  background: var(--npm-quickbtn-bg); color: var(--npm-quickbtn-text);
  font: inherit; font-size: 12px; line-height: 1.35; text-align: left; cursor: pointer;
  transition: background .15s ease;
}
.npm-tip-main:hover { background: var(--npm-quickbtn-hover-bg); }
.npm-tip-ico { display: flex; flex-shrink: 0; }
.npm-tip-ico svg { width: 14px; height: 14px; }
.npm-tip-main kbd {
  padding: 0 5px; border: 1px solid var(--npm-quickbtn-border); border-radius: 5px;
  font: inherit; font-size: 11px; font-weight: 600;
}
.npm-tip-x {
  flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 50%;
  background: transparent; color: var(--npm-text-muted); font-size: 17px; line-height: 1; cursor: pointer;
}
.npm-tip-x:hover { background: var(--npm-icon-btn-hover-bg); color: var(--npm-blue); }
@media (prefers-reduced-motion: reduce) {
  .npm-slash-menu, .npm-chat-tip { animation: none; }
}
.npm-chat-mic.npm-mic-active {
  color: #fff; background: #e11d48;
  animation: npm-mic-pulse 1.2s ease-in-out infinite;
}
.npm-chat-mic.npm-mic-active svg {
  animation: npm-mic-icon-breathe 1.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes npm-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,.45); }
  50% { box-shadow: 0 0 0 6px rgba(225,29,72,0); }
}
html.npm-anim-paused #npm-chat-launcher,
html.npm-anim-paused #npm-chat-launcher *,
html.npm-anim-paused #npm-chat-launcher::before,
html.npm-anim-paused #npm-chat-launcher::after,
html.npm-anim-paused #npm-chat-teaser,
html.npm-anim-paused #npm-chat-teaser *,
html.npm-anim-paused #npm-chat-teaser *::before,
html.npm-anim-paused #npm-chat-teaser *::after,
html.npm-anim-paused #npm-chat-window,
html.npm-anim-paused #npm-chat-window * {
  animation-play-state: paused !important;
}
@keyframes npm-mic-icon-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .npm-chat-mic.npm-mic-active { animation: none; }
  .npm-chat-mic.npm-mic-active svg { animation: none; }
}

.npm-listen-overlay {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  overflow: hidden; border-radius: inherit;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease;
  
  --npm-listen-x: 50%;
  --npm-listen-y: 100%;
  background: radial-gradient(circle 90px at var(--npm-listen-x) var(--npm-listen-y), rgba(225,29,72,.16), rgba(225,29,72,0) 100%);
}
.npm-listen-overlay.npm-listen-active { opacity: 1; visibility: visible; }
.npm-listen-overlay .npm-listen-ring {
  position: absolute; left: var(--npm-listen-x); top: var(--npm-listen-y);
  width: 26px; height: 26px;
  border-radius: 50%; border: 2px solid rgba(225,29,72,.55);
  opacity: 0; transform: translate(-50%, -50%) scale(1);
}
.npm-listen-overlay.npm-listen-active .npm-listen-ring {
  animation: npm-listen-ripple 2.6s cubic-bezier(.25,.7,.4,1) infinite;
}
.npm-listen-overlay .npm-listen-ring:nth-child(2) { animation-delay: .85s !important; }
.npm-listen-overlay .npm-listen-ring:nth-child(3) { animation-delay: 1.7s !important; }
@keyframes npm-listen-ripple {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: .55; }
  100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-listen-overlay.npm-listen-active .npm-listen-ring { animation: none; opacity: .5; }
}

.npm-listening-wave {
  display: none;
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  align-items: center; justify-content: center; gap: 3px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(225,29,72,.13);
  border: 1px solid rgba(225,29,72,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -4px rgba(225,29,72,.35);
  pointer-events: none; z-index: 2;
}
.npm-listening-wave:not([hidden]) { display: flex; }
.npm-listening-wave span {
  display: block; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #ff6b81, #e11d48);
  animation: npm-listening-bar 1s ease-in-out infinite;
}
.npm-listening-wave span:nth-child(1) { height: 5px; animation-delay: 0s; }
.npm-listening-wave span:nth-child(2) { height: 11px; animation-delay: .09s; }
.npm-listening-wave span:nth-child(3) { height: 16px; animation-delay: .18s; }
.npm-listening-wave span:nth-child(4) { height: 20px; animation-delay: .27s; }
.npm-listening-wave span:nth-child(5) { height: 16px; animation-delay: .36s; }
.npm-listening-wave span:nth-child(6) { height: 11px; animation-delay: .45s; }
.npm-listening-wave span:nth-child(7) { height: 5px; animation-delay: .54s; }
@keyframes npm-listening-bar {
  0%, 100% { transform: scaleY(.32); opacity: .55; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-listening-wave span { animation: none; opacity: .85; transform: scaleY(.75); }
}

.npm-image-preview {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 0; flex-shrink: 0;
  overflow-x: auto; scrollbar-width: none;
}
.npm-image-preview::-webkit-scrollbar { display: none; }
.npm-image-preview[hidden] { display: none; }
.npm-image-preview-item { position: relative; flex: none; animation: npmThumbIn .22s cubic-bezier(.4,0,.2,1); }
@keyframes npmThumbIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.npm-image-preview-thumb {
  width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid var(--npm-image-thumb-border);
  display: block;
}
.npm-image-preview-remove {
  position: absolute; top: -6px; right: -6px; margin: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #1f2430; color: #fff; border: 2px solid #fff; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  flex-shrink: 0;
}

#npm-chat-window .npm-msg { flex-shrink: 0; }
#npm-chat-window .npm-msg > p:has(+ .npm-msg-actions),
#npm-chat-window .npm-msg > ul:has(+ .npm-msg-actions) { margin-bottom: 0; }
#npm-chat-window .npm-msg.bot:has(> .npm-msg-actions),
#npm-chat-window .npm-msg.npm-streaming { margin-bottom: 24px; }
#npm-chat-window .npm-msg.bot:has(> .npm-msg-actions) { position: relative; }
#npm-chat-window .npm-msg-actions {
  position: absolute; top: 100%; left: 4px;
  display: flex; align-items: center; gap: 2px; padding-top: 2px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .24s cubic-bezier(.22,1,.36,1);
}
#npm-chat-window .npm-msg.bot:hover .npm-msg-actions,
#npm-chat-window .npm-msg.bot:focus-within .npm-msg-actions {
  opacity: 1; transform: translateY(0);
}
#npm-chat-window .npm-msg-copy,
#npm-chat-window .npm-msg-speak {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; box-sizing: border-box;
  width: 28px; height: 28px; margin: 0; padding: 0; border: none; vertical-align: baseline;
  cursor: pointer; background: transparent; color: var(--npm-text-secondary, var(--npm-speak-color));
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.npm-msg-copy svg,
.npm-msg-speak svg { width: 15px; height: 15px; }
@media (hover: hover) {
  #npm-chat-window .npm-msg-copy:hover,
  #npm-chat-window .npm-msg-speak:hover {
    background: var(--npm-speak-hover-bg); color: var(--npm-text);
  }
}
#npm-chat-window .npm-msg-copy.npm-copy-done,
#npm-chat-window .npm-msg-speak.npm-speaking {
  background: transparent; color: var(--npm-blue);
}
.npm-msg-time {
  display: block; margin-left: 7px; font-size: 11.5px; line-height: 1;
  color: var(--npm-text-secondary, var(--npm-speak-color)); opacity: .75;
  white-space: nowrap;
}

.npm-msg-actions,
.npm-msg-copy,
.npm-msg-speak,
.npm-msg-time {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
@media (hover: none) {
  #npm-chat-window .npm-msg.bot:has(> .npm-msg-actions),
  #npm-chat-window .npm-msg.npm-streaming { margin-bottom: 0; }
  #npm-chat-window .npm-msg-actions {
    position: static; padding-top: 0;
    opacity: 1; transform: translateY(0);
    margin: 4px 0 0 -8px; gap: 4px;
  }
  #npm-chat-window .npm-msg-copy,
  #npm-chat-window .npm-msg-speak { width: 36px; height: 36px; border-radius: 10px; }
  #npm-chat-window .npm-msg-copy svg,
  #npm-chat-window .npm-msg-speak svg { width: 17px; height: 17px; }
  #npm-chat-window .npm-msg-copy:active,
  #npm-chat-window .npm-msg-speak:active { background: var(--npm-speak-hover-bg); }
  #npm-chat-window .npm-msg-time { font-size: 12px; margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-msg-actions { transition: none; }
}
@media (hover: none) {
  .npm-chat-inputbar {
    -webkit-backdrop-filter: blur(14px) saturate(150%) contrast(108%);
    backdrop-filter: blur(14px) saturate(150%) contrast(108%);
  }
  .npm-chat-note {
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }
}
.npm-chat-suggest {
  position: relative; flex-shrink: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 6px 10px 10px; background: transparent;
}
.npm-chat-suggest[hidden] { display: none; }

.npm-msg-image {
  display: block; max-width: 180px; max-height: 180px; border-radius: 10px;
  margin-top: 6px; cursor: zoom-in; object-fit: cover;
}
.npm-msg-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.npm-msg-images .npm-msg-image { margin-top: 0; width: 96px; height: 96px; max-width: 96px; max-height: 96px; }

.npm-msg.npm-slow-notice { max-width: 92%; }
.npm-slow-notice p { margin: 0 0 8px; }
.npm-slow-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.npm-slow-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--npm-blue); color: #fff !important; text-decoration: none !important;
  padding: 6px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 500;
  transition: background .15s ease;
}
.npm-slow-btn:hover { background: var(--npm-blue-dark); }
#npm-chat-page .npm-slow-btn { color: #fff !important; }

.npm-chat-note {
  position: relative; z-index: 1;
  text-align: center; font-size: 10px; line-height: 1.5; color: var(--npm-text-muted);
  padding: 6px 10px 8px; user-select: none; flex-shrink: 0;
  background: transparent;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 65%);
  mask-image: linear-gradient(to bottom, transparent, #000 65%);
}
.npm-chat-note b { color: var(--npm-note-text-strong); font-weight: 500; }

#npm-chat-window {
  position: fixed; bottom: 220px; right: 24px; z-index: 999999;
  width: 396px; max-width: calc(100vw - 32px);
  height: 580px; max-height: calc(100vh - 140px);
  min-width: 300px; min-height: 380px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: none; flex-direction: column; overflow: hidden;
  font-family: var(--npm-font);
  background: var(--npm-bg);
  color: var(--npm-text);
  opacity: 0; transform: scale(.9) translateY(14px);
  transform-origin: bottom right;
  will-change: transform, opacity;
    transition: opacity .22s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
#npm-chat-window.open { display: flex; }
#npm-chat-window.show { opacity: 1; transform: scale(1) translateY(0); }
#npm-chat-window.resizing { transition: none; }
#npm-chat-window.closing {
  transition: opacity .16s ease-in, transform .2s cubic-bezier(.4,0,1,1) .09s !important;
}
#npm-chat-window.closing .npm-aurora-burst {
  transition: opacity .08s ease; opacity: 0;
}
#npm-chat-window.closing .npm-aurora-burst::before {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  #npm-chat-window { transition: none; }
}

#npm-chat-resize-handle {
  position: absolute; top: 0; left: 0; width: 20px; height: 20px; z-index: 2;
  cursor: nwse-resize; touch-action: none;
}
#npm-chat-resize-handle::before {
  content: ""; position: absolute; top: 7px; left: 7px; width: 8px; height: 8px;
  border-top: 2px solid rgba(255,255,255,.85); border-left: 2px solid rgba(255,255,255,.85);
  border-radius: 3px 0 0 0; opacity: 0; transition: opacity .15s ease;
}
#npm-chat-window:hover #npm-chat-resize-handle::before { opacity: .9; }

#npm-chat-page .npm-chat-messages {
  padding: 20px 14px; position: relative; background: transparent; min-height: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
}
#npm-chat-page .npm-chat-messages-inner { max-width: 880px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 10px; }
#npm-chat-page .npm-image-preview,
#npm-chat-page .npm-chat-note { max-width: 880px; margin: 0 auto; width: 100%; }
#npm-chat-page .npm-image-preview-thumb { width: 60px; height: 60px; }
#npm-chat-page .npm-msg.bot {
  background: transparent; border: none; padding: 2px 2px; max-width: 100%;
  color: var(--npm-text); font-size: 14.5px; line-height: 1.6;
}
#npm-chat-page .npm-msg.user {
  background: var(--npm-page-msg-user-bg); color: var(--npm-page-msg-user-text); border-bottom-right-radius: 4px;
}
#npm-chat-page .npm-msg.typing { color: var(--npm-page-typing-text); font-size: 14.5px; background: var(--npm-page-typing-bg); padding:8px 12px; display: inline-flex; align-items: center; gap: 6px; }

@media (pointer: coarse) {
    #npm-chat-resize-handle { display: none; }
}

@media (max-width: 480px) {
    #npm-chat-launcher {
    bottom: calc(181px + env(safe-area-inset-bottom, 0px));
    right: 16px; width: 54px; height: 54px;
  }
  #npm-chat-window {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100vh; height: 100dvh;
    max-width: 100%; max-height: 100dvh; min-width: 0; min-height: 0;
    border-radius: 0; transform-origin: center bottom;
  }
  #npm-chat-window.show { transform: scale(1) translateY(0); }
  #npm-chat-resize-handle { display: none; }
  .npm-chat-header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
  }
  .npm-chat-inputbar {
    margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    margin-left: calc(10px + env(safe-area-inset-left, 0px));
    margin-right: calc(10px + env(safe-area-inset-right, 0px));
  }
  .npm-chat-input { font-size: 13.5px; }
  .npm-chat-input::placeholder { font-size: 13px; }
}

body.npm-chat-scroll-lock { overflow: hidden; }

.npm-reveal {
  display: inline-block;
  opacity: 0;
  animation: npmRevealIn 0.1s ease-out forwards;
}
@keyframes npmRevealIn {
  from { opacity: 0; transform: translateY(1px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .npm-reveal { animation: none; opacity: 1; }
}

@media (prefers-color-scheme: dark) {
  #npm-chat-window:not([data-npm-theme="light"]),
  #npm-chat-page:not([data-npm-theme="light"]),
  #npm-chat-teaser:not([data-npm-theme="light"]) {
    --npm-bg: #17191d;
    --npm-bg-elevated: #1e2127;
    --npm-text: #e8eaed;
    --npm-text-secondary: #a8b0bd;
    --npm-text-muted: #7d8798;
    --npm-border: #2b2f38;
    --npm-border-strong: #3a3f4a;
    --npm-quickbar-bg: #1c2028;
    --npm-quickbar-border: #2b2f38;
    --npm-quickbtn-bg: #232730;
    --npm-quickbtn-border: #34405c;
    --npm-quickbtn-text: #8fb4ff;
    --npm-quickbtn-hover-bg: #2a3550;
    --npm-msg-bot-bg: #232730;
    --npm-msg-bot-border: #2b2f38;
    --npm-msg-bot-text: #e8eaed;
    --npm-input-bg: #20242c;
    --npm-input-border: #3a3f4a;
    --npm-input-text: #e8eaed;
    --npm-inputbar-bg: #17191d;
    --npm-inputbar-border: #2b2f38;
    --npm-icon-btn-text: #a8b0bd;
    --npm-icon-btn-hover-bg: #262b34;
    --npm-note-bg: #17191d;
    --npm-composer-bg: rgba(24,27,34,.42);
    --npm-composer-border: rgba(255,255,255,.16);
    --npm-composer-border-focus: rgba(143,180,255,.4);
    --npm-composer-shadow: 0 8px 28px -14px rgba(0,0,0,.8);
    --npm-composer-shadow-focus: 0 10px 32px -14px rgba(0,0,0,.9);
    --npm-composer-highlight: rgba(255,255,255,.14);
    --npm-composer-inset: rgba(255,255,255,.18);
    --npm-note-text: #6b7480;
    --npm-note-text-strong: #8a94a3;
    --npm-image-thumb-border: #2b2f38;
    --npm-page-msg-user-bg: #232c42;
    --npm-page-msg-user-text: #e8eaed;
    --npm-page-typing-bg: #232730;
    --npm-page-typing-text: #a8b0bd;
    --npm-teaser-bg: rgba(28,31,38,.72);
    --npm-teaser-border: rgba(255,255,255,.12);
    --npm-teaser-text: #e8eaed;
    --npm-teaser-hover-bg: rgba(38,42,50,.8);
    --npm-teaser-close-bg: rgba(224,124,152,.22);
    --npm-teaser-close-color: #f0a8bf;
    --npm-teaser-close-hover-bg: rgba(224,124,152,.34);
    --npm-teaser-bg-solid: #1e2127;

    --npm-header-bg: linear-gradient(135deg, #232a36, #14161b);
    --npm-link-color: #8fb4ff;
    --npm-speak-bg: rgba(143,180,255,.14);
    --npm-speak-color: #8fb4ff;
    --npm-speak-hover-bg: rgba(143,180,255,.24);

    --npm-side-bg: #1c2028;
    --npm-side-border: #2b2f38;
    --npm-side-text: #a8b0bd;
    --npm-side-text-hover: #e8eaed;
    --npm-side-hover-bg: #262b34;

    --npm-scrollbar-thumb: rgba(255,255,255,.14);
    --npm-scrollbar-thumb-hover: rgba(255,255,255,.26);
  }
}
#npm-chat-window[data-npm-theme="dark"],
#npm-chat-page[data-npm-theme="dark"],
#npm-chat-teaser[data-npm-theme="dark"] {
  --npm-bg: #17191d;
  --npm-bg-elevated: #1e2127;
  --npm-text: #e8eaed;
  --npm-text-secondary: #a8b0bd;
  --npm-text-muted: #7d8798;
  --npm-border: #2b2f38;
  --npm-border-strong: #3a3f4a;
  --npm-quickbar-bg: #1c2028;
  --npm-quickbar-border: #2b2f38;
  --npm-quickbtn-bg: #232730;
  --npm-quickbtn-border: #34405c;
  --npm-quickbtn-text: #8fb4ff;
  --npm-quickbtn-hover-bg: #2a3550;
  --npm-msg-bot-bg: #232730;
  --npm-msg-bot-border: #2b2f38;
  --npm-msg-bot-text: #e8eaed;
  --npm-input-bg: #20242c;
  --npm-input-border: #3a3f4a;
  --npm-input-text: #e8eaed;
  --npm-inputbar-bg: #17191d;
  --npm-inputbar-border: #2b2f38;
  --npm-icon-btn-text: #a8b0bd;
  --npm-icon-btn-hover-bg: #262b34;
  --npm-note-bg: #17191d;
  --npm-composer-bg: rgba(24,27,34,.42);
  --npm-composer-border: rgba(255,255,255,.16);
  --npm-composer-border-focus: rgba(143,180,255,.4);
  --npm-composer-shadow: 0 8px 28px -14px rgba(0,0,0,.8);
  --npm-composer-shadow-focus: 0 10px 32px -14px rgba(0,0,0,.9);
  --npm-composer-highlight: rgba(255,255,255,.14);
  --npm-composer-inset: rgba(255,255,255,.18);
  --npm-note-text: #6b7480;
  --npm-note-text-strong: #8a94a3;
  --npm-image-thumb-border: #2b2f38;
  --npm-page-msg-user-bg: #232c42;
  --npm-page-msg-user-text: #e8eaed;
  --npm-page-typing-bg: #232730;
  --npm-page-typing-text: #a8b0bd;
  --npm-teaser-bg: rgba(28,31,38,.72);
  --npm-teaser-border: rgba(255,255,255,.12);
  --npm-teaser-text: #e8eaed;
  --npm-teaser-hover-bg: rgba(38,42,50,.8);
  --npm-teaser-close-bg: rgba(224,124,152,.22);
  --npm-teaser-close-color: #f0a8bf;
  --npm-teaser-close-hover-bg: rgba(224,124,152,.34);
  --npm-teaser-bg-solid: #1e2127;

  --npm-header-bg: linear-gradient(135deg, #232a36, #14161b);
  --npm-link-color: #8fb4ff;
  --npm-speak-bg: rgba(143,180,255,.14);
  --npm-speak-color: #8fb4ff;
  --npm-speak-hover-bg: rgba(143,180,255,.24);

  --npm-side-bg: #1c2028;
  --npm-side-border: #2b2f38;
  --npm-side-text: #a8b0bd;
  --npm-side-text-hover: #e8eaed;
  --npm-side-hover-bg: #262b34;

  --npm-scrollbar-thumb: rgba(255,255,255,.14);
  --npm-scrollbar-thumb-hover: rgba(255,255,255,.26);
}

.npm-chat-input::placeholder { color: var(--npm-text-muted); opacity: 1; }

@media (prefers-color-scheme: dark) {
  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    #npm-chat-teaser:not([data-npm-theme="light"]) { background: var(--npm-teaser-bg-solid); }
  }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #npm-chat-teaser[data-npm-theme="dark"] { background: var(--npm-teaser-bg-solid); }
}

.npm-chat-theme-toggle { position: relative; overflow: hidden; }
.npm-chat-theme-toggle .npm-theme-icon-sun,
.npm-chat-theme-toggle .npm-theme-icon-moon {
  position: absolute; top: 50%; left: 50%; margin: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
}
.npm-chat-theme-toggle .npm-theme-icon-sun {
  opacity: 0; transform: translate(-50%,-50%) rotate(-90deg) scale(.4);
}
.npm-chat-theme-toggle .npm-theme-icon-moon {
  opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1);
}
#npm-chat-window[data-npm-theme="dark"] .npm-chat-theme-toggle .npm-theme-icon-sun,
#npm-chat-page[data-npm-theme="dark"] .npm-chat-theme-toggle .npm-theme-icon-sun {
  opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1);
}
#npm-chat-window[data-npm-theme="dark"] .npm-chat-theme-toggle .npm-theme-icon-moon,
#npm-chat-page[data-npm-theme="dark"] .npm-chat-theme-toggle .npm-theme-icon-moon {
  opacity: 0; transform: translate(-50%,-50%) rotate(90deg) scale(.4);
}
@media (prefers-color-scheme: dark) {
  #npm-chat-window:not([data-npm-theme="light"]) .npm-chat-theme-toggle .npm-theme-icon-sun,
  #npm-chat-page:not([data-npm-theme="light"]) .npm-chat-theme-toggle .npm-theme-icon-sun {
    opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1);
  }
  #npm-chat-window:not([data-npm-theme="light"]) .npm-chat-theme-toggle .npm-theme-icon-moon,
  #npm-chat-page:not([data-npm-theme="light"]) .npm-chat-theme-toggle .npm-theme-icon-moon {
    opacity: 0; transform: translate(-50%,-50%) rotate(90deg) scale(.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .npm-chat-theme-toggle .npm-theme-icon-sun,
  .npm-chat-theme-toggle .npm-theme-icon-moon { transition: opacity .2s ease; }
}

:where(html, body, #npm-chat-page, #npm-chat-page *, #npm-chat-window, #npm-chat-window *, #npm-chat-teaser, #npm-chat-teaser *) {
  transition: background-color .45s cubic-bezier(.4,0,.2,1), color .45s cubic-bezier(.4,0,.2,1), border-color .45s cubic-bezier(.4,0,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  :where(html, body, #npm-chat-page, #npm-chat-page *, #npm-chat-window, #npm-chat-window *, #npm-chat-teaser, #npm-chat-teaser *) {
    transition: none;
  }
}

.npm-msg-image,
.npm-image-preview-thumb,
.npm-illust-img {
  cursor: zoom-in;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease;
}
.npm-msg-image:hover,
.npm-illust-img:hover {
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 8px 22px rgba(2, 6, 23, .16);
}

.npm-illust-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.npm-illust-card {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--npm-border);
  background: var(--npm-surface-2, rgba(15, 23, 42, .04));
  display: flex;
  flex-direction: column;
}
.npm-illust-card .npm-illust-img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}
.npm-illust-cap {
  padding: 6px 8px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--npm-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.npm-step-media,
.npm-inline-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
.npm-media-slot {
  position: relative;
  display: block;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
  max-height: 230px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--npm-border);
  background: linear-gradient(100deg, rgba(148, 163, 184, .12) 30%, rgba(148, 163, 184, .30) 50%, rgba(148, 163, 184, .12) 70%);
  background-size: 220% 100%;
  animation: npm-media-shimmer 1.3s linear infinite;
}
.npm-media-slot.is-loaded {
  animation: none;
  background: none;
}
.npm-media-slot .npm-illust-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity .25s ease;
}
.npm-media-slot.is-loaded .npm-illust-img { opacity: 1; }
.npm-media-slot:not(.is-loaded)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, .4);
  border-top-color: rgba(148, 163, 184, .95);
  animation: npm-media-spin .8s linear infinite;
}
@keyframes npm-media-spin { to { transform: rotate(360deg); } }
.npm-inline-media .npm-media-slot { flex: 0 1 360px; max-height: 190px; }
li > .npm-inline-media { margin-bottom: 4px; }
@keyframes npm-media-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .npm-media-slot { animation: none; }
  .npm-media-slot:not(.is-loaded)::after { animation-duration: 2.4s; }
}

.npm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 24, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
  visibility: visible;
  transition: opacity .26s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  user-select: none;
  -webkit-user-select: none;
}
.npm-lightbox[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .22s;
}
.npm-lightbox-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px;
  background: linear-gradient(180deg, rgba(2, 6, 23, .65), transparent);
  color: #f8fafc;
}
.npm-lightbox-count {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .3px;
  opacity: .9;
}
.npm-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.npm-lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(15, 23, 42, .55);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.npm-lightbox-btn:hover { background: rgba(30, 41, 59, .85); transform: scale(1.06); }
.npm-lightbox-btn:active { transform: scale(.95); }
.npm-lightbox-btn svg { width: 18px; height: 18px; }
.npm-lightbox-btn[hidden] { display: none !important; }
.npm-lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 84vh;
  overflow: auto;
}
.npm-lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  cursor: zoom-in;
  transform: scale(1);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.npm-lightbox[hidden] .npm-lightbox-img {
  transform: scale(.92);
}
.npm-lightbox.is-zoomed .npm-lightbox-img {
  max-width: none;
  max-height: none;
  width: min(1600px, 180vw);
  cursor: zoom-out;
}
.npm-lightbox-caption {
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .68);
  color: #e2e8f0;
  font-size: 13px;
  max-width: 88vw;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.npm-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(15, 23, 42, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.npm-lightbox-nav:hover { background: rgba(30, 41, 59, .88); transform: translateY(-50%) scale(1.06); }
.npm-lightbox-nav:active { transform: translateY(-50%) scale(.95); }
.npm-lightbox-nav.prev { left: 16px; }
.npm-lightbox-nav.next { right: 16px; }
.npm-lightbox-nav svg { width: 22px; height: 22px; }
.npm-lightbox-nav[hidden] { display: none !important; }
@media (max-width: 680px) {
  .npm-lightbox-nav { width: 38px; height: 38px; }
  .npm-lightbox-nav.prev { left: 10px; }
  .npm-lightbox-nav.next { right: 10px; }
  .npm-illust-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.npm-onboard-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--npm-border);
  background: var(--npm-bg-elevated);
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, .08);
  animation: npm-msg-in .32s cubic-bezier(.22, 1, .36, 1);
}
.npm-onboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.npm-onboard-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(13, 110, 253, .12);
  color: var(--npm-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}
.npm-onboard-head strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--npm-text);
}
.npm-onboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
#npm-chat-window .npm-onboard-grid {
  grid-template-columns: 1fr;
}
.npm-onboard-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid var(--npm-border);
  background: var(--npm-bg);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .14s ease;
}
.npm-onboard-item:hover {
  border-color: var(--npm-quickbtn-border);
  background: var(--npm-quickbtn-hover-bg);
  transform: translateY(-1px);
}
.npm-onboard-item:active { transform: scale(.98); }
.npm-onboard-item .npm-tool-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin-top: 1px;
}
.npm-onboard-item .npm-tool-ico svg { width: 16px; height: 16px; }
.npm-onboard-txt { min-width: 0; flex: 1; }
.npm-onboard-txt b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--npm-text);
}
.npm-onboard-txt small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--npm-text-secondary);
}
.npm-onboard-install {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--npm-quickbtn-border);
  background: linear-gradient(135deg, rgba(13, 110, 253, .07), rgba(225, 29, 72, .05));
}
.npm-onboard-appicon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .12);
}
.npm-onboard-install-txt { flex: 1; min-width: 0; }
.npm-onboard-install-txt b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--npm-text);
}
.npm-onboard-install-txt small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.38;
  color: var(--npm-text-secondary);
}
.npm-onboard-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 13px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(225, 29, 72, .38);
  transition: transform .14s ease, filter .15s ease;
}
.npm-onboard-install-btn svg { width: 15px; height: 15px; }
.npm-onboard-install-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.npm-onboard-install-btn:active { transform: scale(.96); }

.npm-install-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 12, 24, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  visibility: visible;
  transition: opacity .24s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  font-family: var(--npm-font, system-ui, -apple-system, sans-serif);
}
.npm-install-modal[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.npm-install-sheet {
  position: relative;
  width: min(100%, 440px);
  box-sizing: border-box;
  padding: 20px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 60px -12px rgba(2, 6, 23, .38);
  transform: translateY(0) scale(1);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}
html[data-npm-theme="dark"] .npm-install-sheet,
body[data-npm-theme="dark"] .npm-install-sheet {
  background: #1e2127;
  color: #e8eaed;
  border-color: rgba(255, 255, 255, .14);
}
.npm-install-modal[hidden] .npm-install-sheet {
  transform: translateY(12px) scale(.96);
}
.npm-install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, .14);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.npm-install-close:hover { background: rgba(148, 163, 184, .25); }
.npm-install-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-right: 28px;
  margin-bottom: 14px;
}
.npm-install-appicon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .14), 0 0 0 1px rgba(15, 23, 42, .06);
}
.npm-install-hero-txt strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
}
.npm-install-hero-txt span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.38;
  opacity: .75;
}
.npm-install-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(148, 163, 184, .12);
  margin-bottom: 14px;
}
.npm-install-tab {
  padding: 7px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  opacity: .72;
  transition: background .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.npm-install-tab.is-active {
  background: #0d6efd;
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(13, 110, 253, .32);
}
.npm-install-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.npm-install-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(148, 163, 184, .08);
  font-size: 13px;
  line-height: 1.45;
}
.npm-install-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.npm-install-step-txt { flex: 1; min-width: 0; }
.npm-install-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.npm-install-native,
.npm-install-done {
  padding: 9px 16px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.npm-install-native {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(225, 29, 72, .38);
}
.npm-install-native[hidden] { display: none !important; }
.npm-install-done {
  background: rgba(148, 163, 184, .18);
  color: inherit;
}
.npm-install-done:hover { background: rgba(148, 163, 184, .28); }

@media (max-width: 680px) {
  .npm-onboard-grid { grid-template-columns: 1fr; }
  .npm-onboard-install { flex-wrap: wrap; }
  .npm-onboard-install-btn { width: 100%; justify-content: center; margin-top: 2px; }
}

#npm-chat-window .npm-chat-inputbar { z-index: 4; }
#npm-chat-window .npm-chat-inputbar.npm-tools-open { z-index: 6; }
@media (max-width: 480px), (pointer: coarse) {
  #npm-chat-window .npm-chat-input,
  #npm-chat-window .npm-tools-search { font-size: 16px; }
}
.npm-chat-messages.npm-has-room::after { content: ""; display: block; flex: 0 0 auto; height: var(--npm-room, 0px); }
@media (max-width: 700px), (pointer: coarse) {
  #npm-chat-window input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="hidden"]),
  #npm-chat-window textarea,
  #npm-chat-window select,
  #npm-chat-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="hidden"]),
  #npm-chat-page textarea,
  #npm-chat-page select,
  .npm-tools-panel input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="hidden"]),
  .npm-tools-panel textarea,
  .npm-tools-panel select {
    font-size: 16px !important;
  }
  #npm-chat-window, #npm-chat-page, .npm-tools-panel { touch-action: manipulation; }
}

.npm-msg.user.npm-fly {
  position: relative; overflow: hidden; transform-origin: 100% 100%;
  animation: npm-fly-in .7s cubic-bezier(.16, 1, .3, 1) both;
}
.npm-msg.user.npm-fly::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%); animation: npm-fly-shine .9s cubic-bezier(.4, 0, .2, 1) .3s both;
}
@keyframes npm-fly-in {
  0% { opacity: 0; transform: translate3d(16px, 40px, 0) scale(.7); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes npm-fly-shine { to { transform: translateX(120%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .npm-msg.user.npm-fly, .npm-msg.user.npm-fly::after { animation: none; }
  .npm-msg.user.npm-fly::after { display: none; }
}

#npm-chat-window .npm-onboard-card:not(.npm-onboard-full),
#npm-chat-window .npm-chat-tip { display: none; }
#npm-chat-window .npm-chat-suggest {
  flex-wrap: nowrap; justify-content: flex-start; gap: 8px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scroll-padding: 0 10px; scrollbar-width: none;
}
#npm-chat-window .npm-chat-suggest::-webkit-scrollbar { display: none; }
#npm-chat-window .npm-chat-suggest > * { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
