/* Виджет чата поддержки OrcVPN (единая зелёная палитра OrcVPN Light v3 + Manrope). */
.ntchat {
  --c-bg: var(--green-ink, #173016);
  --c-panel: var(--green-dark-surface, #153b13);
  --c-card: var(--green-deep, #10420e);
  --c-card-2: var(--green-ink, #173016);
  --c-line: #3e643b;
  --c-ink: var(--green-on-dark, #e1f3df);
  --c-muted: #b7cbb4;
  --c-gold: var(--green-accent-light, #9ce296);
  --c-teal: var(--green-accent-light, #9ce296);
  --c-tg: #29a9eb;
  --c-tg-2: #1c88c7;
  --c-danger: #FFB6B1;
  --c-grad: linear-gradient(135deg, var(--green, #037b00) 0%, var(--green-hover, #026500) 100%);
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  font: 15px/1.5 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--c-ink);
}
[data-theme="light"] .ntchat {
  --c-bg: var(--green-tint, #f5faf4);
  --c-panel: var(--surface, #fff);
  --c-card: var(--green-soft, #eaf6e9);
  --c-card-2: var(--green-soft-strong, #deefdc);
  --c-line: var(--green-border, #cce5ca);
  --c-ink: var(--green-ink, #173016);
  --c-muted: var(--muted, #5c705a);
  --c-gold: var(--green, #037b00);
  --c-teal: var(--green, #037b00);
  --c-danger: #A6272B;
}
.ntchat[hidden] { display: none; }
@media(max-width:760px) {
  .orc-cabinet .ntchat { bottom:calc(86px + env(safe-area-inset-bottom)); }
}

.ntchat-fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-grad);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 10px 28px var(--green-glow, rgb(3 123 0 / .15)), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ntchat-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 36px var(--green-glow, rgb(3 123 0 / .15)), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}
.ntchat-fab:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 4px; }
.ntchat-fab.is-calling::before,
.ntchat-fab.is-calling::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgb(3 123 0 / .7);
  pointer-events: none;
  opacity: 0;
  animation: none;
}
.ntchat-fab.is-calling::after { animation-delay: 1.5s; }
.ntchat-fab.is-unread::before,
.ntchat-fab.is-unread::after { border-color: var(--c-teal); animation: ntchat-wave 1.6s ease-out 2; }
.ntchat-fab.is-unread::after { animation-delay: 0.8s; }
@keyframes ntchat-wave {
  0% { transform: scale(1); opacity: 0.85; }
  70% { transform: scale(1.72); opacity: 0; }
  100% { transform: scale(1.72); opacity: 0; }
}
.ntchat-fab svg { width: 27px; height: 27px; }
.ntchat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green, #037b00);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid #FFFFFF;
}
.ntchat-badge[hidden] { display: none; }
.ntchat.is-open .ntchat-fab { visibility: hidden; }

.ntchat-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 406px;
  height: min(650px, calc(100dvh - 40px));
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgb(23 48 22 / .16);
  overflow: hidden;
  animation: ntchat-in 0.2s ease-out;
}
.ntchat-panel[hidden] { display: none; }
.ntchat-panel.is-dragover {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 2px rgb(3 123 0 / .45), 0 18px 55px rgb(23 48 22 / .2);
}
@keyframes ntchat-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ntchat-dropzone {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgb(23 48 22 / .9);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
[data-theme="light"] .ntchat-dropzone { background: rgb(245 250 244 / .92); }
.ntchat-dropzone[hidden] { display: none; }
.ntchat-dropzone-box {
  padding: 20px 26px;
  border-radius: 16px;
  border: 2px dashed var(--c-gold);
  background: var(--c-panel);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
}

.ntchat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px 13px 15px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-card-2);
}
.ntchat-logo {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--c-grad);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  box-shadow: none;
  background: transparent;
}
.ntchat-logo img { width: 38px; height: 42px; object-fit: contain; }
.ntchat-who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ntchat-name { font-weight: 800; font-size: 15px; line-height: 1.2; }
.ntchat-status { font-size: 11.5px; color: var(--c-muted); display: inline-flex; align-items: center; gap: 6px; }
.ntchat-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-teal);
  flex: none;
}
.ntchat-head-actions { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.ntchat .ntchat-head-btn,
.ntchat .ntchat-close {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--c-ink);
  cursor: pointer;
}
.ntchat .ntchat-head-btn:hover,
.ntchat .ntchat-close:hover { background: rgba(255, 255, 255, 0.09); }
[data-theme="light"] .ntchat .ntchat-head-btn:hover,
[data-theme="light"] .ntchat .ntchat-close:hover { background: rgb(23 48 22 / .08); }
.ntchat-head-btn.is-verified { color: var(--c-teal); }
.ntchat-head-btn.is-verified::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 2px var(--c-panel);
}

.ntchat-body {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 14px 12px;
  background: var(--c-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--c-line) transparent;
}
.ntchat-list { display: grid; gap: 10px; }
.ntchat-day {
  justify-self: center;
  padding: 3px 11px;
  border-radius: 20px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  font-size: 11.5px;
  color: var(--c-muted);
}

/* Строки сообщений + кнопка «три точки» */
.ntchat-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
}
.ntchat-row--out { justify-content: flex-start; }
.ntchat-row--in { justify-content: flex-end; }
.ntchat-row.is-flash .ntchat-msg {
  box-shadow: 0 0 0 2px var(--c-gold), 0 0 18px var(--green-glow, rgb(3 123 0 / .15));
  transition: box-shadow 0.3s ease;
}

.ntchat-more-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  opacity: 0.42;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ntchat-row:hover .ntchat-more-btn,
.ntchat-more-btn:hover,
.ntchat-more-btn:focus-visible {
  opacity: 1;
  background: var(--c-card);
  color: var(--c-ink);
}
@media (hover: none) {
  .ntchat-more-btn { opacity: 0.72; }
}

.ntchat-msg {
  max-width: calc(100% - 36px);
  padding: 9px 12px 7px;
  border-radius: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14.2px;
  line-height: 1.46;
  transition: box-shadow 0.3s ease;
}
.ntchat-msg--out {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-bottom-left-radius: 5px;
}
.ntchat-msg--in {
  background: var(--c-grad);
  color: #FFFFFF;
  font-weight: 500;
  border-bottom-right-radius: 5px;
}
.ntchat-author { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 800; color: var(--c-gold); }
[data-theme="light"] .ntchat-author { color: var(--green, #037b00); }
.ntchat .ntchat-msg--in .ntchat-author { color: var(--green-on-dark, #e1f3df); }
.ntchat-time { display: block; margin-top: 3px; font-size: 11px; opacity: 0.65; text-align: right; }
.ntchat-msg img { display: block; max-width: 100%; max-height: 220px; margin-bottom: 5px; border-radius: 10px; }
.ntchat-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 2px;
}

/* Встроенная цитата ответа внутри пузырька */
.ntchat-quote {
  display: grid;
  gap: 1px;
  margin: 0 0 6px;
  padding: 5px 8px;
  border-left: 3px solid var(--c-gold);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  color: inherit;
  line-height: 1.32;
}
[data-theme="light"] .ntchat-msg--out .ntchat-quote { background: rgb(23 48 22 / .06); }
.ntchat-msg--in .ntchat-quote {
  border-left-color: var(--green-on-dark, #e1f3df);
  background: rgb(23 48 22 / .16);
}
.ntchat-quote-author { font-weight: 800; font-size: 11px; opacity: 0.9; }
.ntchat-quote-text {
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* Контекстное меню сообщения (ПКМ и три точки) */
.ntchat-menu {
  position: absolute;
  z-index: 40;
  min-width: 184px;
  padding: 5px;
  border-radius: 12px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  box-shadow: 0 10px 30px rgb(23 48 22 / .16);
  display: grid;
  gap: 2px;
}
.ntchat-menu[hidden] { display: none; }
.ntchat-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.ntchat-menu-item:hover { background: var(--c-card); color: var(--c-gold); }
[data-theme="light"] .ntchat-menu-item:hover { color: var(--green, #037b00); }

/* Плашка контакта и авторизации через Telegram */
.ntchat-contact {
  position: relative;
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 13px 13px 13px;
  border-radius: 14px;
  background: var(--c-card);
  border: 1px dashed rgb(3 123 0 / .48);
  font-size: 13.2px;
}
.ntchat-contact[hidden] { display: none; }
.ntchat-contact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ntchat-contact-top p { margin: 0; color: var(--c-muted); line-height: 1.4; }
.ntchat-contact-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
}
.ntchat-contact-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--c-ink); }
[data-theme="light"] .ntchat-contact-close:hover { background: rgb(23 48 22 / .08); }

.ntchat-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--c-tg) 0%, var(--c-tg-2) 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  font-size: 13.8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(41, 169, 235, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.ntchat-tg-btn:hover { filter: brightness(1.07); }
.ntchat-tg-btn:disabled { opacity: 0.6; cursor: wait; }

.ntchat-tg-panel {
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--c-bg);
  border: 1px solid rgba(41, 169, 235, 0.35);
  font-size: 12.5px;
  line-height: 1.42;
}
.ntchat-tg-panel[hidden] { display: none; }
.ntchat-tg-step { color: var(--c-ink); }
.ntchat-tg-actions { display: grid; gap: 6px; }
.ntchat-tg-proxy-btn,
.ntchat-tg-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 9px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}
.ntchat-tg-proxy-btn {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  color: var(--c-teal);
}
[data-theme="light"] .ntchat-tg-proxy-btn { color: var(--green, #037b00); background: var(--green-soft, #eaf6e9); }
.ntchat-tg-proxy-btn:hover { background: var(--c-card-2); }
.ntchat-tg-open-btn {
  background: rgba(41, 169, 235, 0.15);
  border: 1px solid rgba(41, 169, 235, 0.45);
  color: #60c5f7;
}
[data-theme="light"] .ntchat-tg-open-btn { color: #0369a1; }
.ntchat-tg-open-btn:hover { background: rgba(41, 169, 235, 0.24); }
.ntchat-tg-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
}
.ntchat-tg-code-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--c-gold);
}
[data-theme="light"] .ntchat-tg-code-row code { color: var(--green, #037b00); }
.ntchat-tg-copy-btn {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.ntchat-tg-copy-btn:hover { border-color: var(--c-gold); }
.ntchat-tg-note { color: var(--c-muted); font-size: 11.8px; }
.ntchat-tg-note a { color: var(--c-gold); text-decoration: underline; }
[data-theme="light"] .ntchat-tg-note a { color: var(--green, #037b00); }

.ntchat-tg-verified {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: 12.8px;
  font-weight: 600;
}
.ntchat-tg-verified[hidden] { display: none; }
.ntchat-tg-verified-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-teal);
  flex: none;
}

.ntchat-or {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-muted);
  font-size: 11.5px;
}
.ntchat-or::before,
.ntchat-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}

.ntchat-manual-fields { display: grid; gap: 7px; }
.ntchat-manual-fields[hidden] { display: none; }
.ntchat .ntchat-contact input {
  width: 100%;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  background: var(--c-bg);
  color: var(--c-ink);
  box-sizing: border-box;
}
.ntchat .ntchat-contact input:focus { border-color: var(--c-gold); outline: none; }
.ntchat .ntchat-contact-submit {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 11px;
  background: var(--c-grad);
  color: #FFFFFF;
  font: inherit;
  font-weight: 800;
  font-size: 13.8px;
  cursor: pointer;
}

/* Футер чата: цитата ответа, превью файлов, запись голоса, ввод */
.ntchat-foot {
  display: grid;
  gap: 7px;
  padding: 9px 10px 11px;
  border-top: 1px solid var(--c-line);
  background: var(--c-panel);
}

.ntchat-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 10px;
  background: var(--c-card);
  border-left: 3px solid var(--c-gold);
  font-size: 12.2px;
}
.ntchat-reply-bar[hidden] { display: none; }
.ntchat-reply-info { flex: 1; min-width: 0; display: grid; }
.ntchat-reply-author { font-weight: 800; color: var(--c-gold); font-size: 11.5px; }
[data-theme="light"] .ntchat-reply-author { color: var(--green, #037b00); }
.ntchat-reply-snippet {
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ntchat-reply-cancel {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
}
.ntchat-reply-cancel:hover { color: var(--c-ink); background: rgba(255, 255, 255, 0.08); }

.ntchat-pending-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ntchat-pending-files[hidden] { display: none; }
.ntchat-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 9px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  font-size: 12px;
}
.ntchat-file-chip img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 5px;
  flex: none;
}
.ntchat-file-chip-name {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--c-ink);
  font-weight: 600;
}
.ntchat-file-chip-size { color: var(--c-muted); font-size: 11px; flex: none; }
.ntchat-file-chip-rm {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  flex: none;
}
.ntchat-file-chip-rm:hover { color: var(--c-danger); }

/* Панель голосовой диктовки */
.ntchat-rec-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(248, 113, 113, 0.13);
  border: 1px solid rgba(248, 113, 113, 0.45);
  font-size: 12.5px;
}
.ntchat-rec-bar[hidden] { display: none; }
.ntchat-rec-bar.is-busy {
  background: var(--green-glow, rgb(3 123 0 / .15));
  border-color: rgb(3 123 0 / .45);
}
.ntchat-rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-danger);
  flex: none;
  animation: ntchat-rec-pulse 1.1s ease-in-out infinite;
}
.ntchat-rec-bar.is-busy .ntchat-rec-dot { background: var(--c-gold); }
@keyframes ntchat-rec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.ntchat-rec-timer { font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.ntchat-rec-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
  flex: 1;
}
.ntchat-rec-bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--c-danger);
  transition: height 0.08s linear;
}
.ntchat-rec-bar.is-busy .ntchat-rec-bars { display: none; }
.ntchat-rec-status { flex: 1; color: var(--c-ink); font-weight: 600; }
.ntchat-rec-cancel,
.ntchat-rec-done {
  padding: 5px 9px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex: none;
}
.ntchat-rec-cancel {
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-muted);
}
.ntchat-rec-cancel:hover { color: var(--c-ink); }
.ntchat-rec-done {
  border: 0;
  background: var(--c-grad);
  color: #FFFFFF;
}

.ntchat-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11.8px;
  line-height: 1.38;
  color: var(--c-muted);
  cursor: pointer;
}
.ntchat-consent[hidden] { display: none; }
.ntchat .ntchat-consent input { flex: none; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--c-gold); }
.ntchat-consent a { color: var(--c-gold); text-decoration: underline; }
[data-theme="light"] .ntchat-consent a { color: var(--green, #037b00); }
.ntchat-error { margin: 0; font-size: 12.2px; color: var(--c-danger); }
.ntchat-error[hidden] { display: none; }
.ntchat-toast {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 45;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--green-dark-surface, #153b13);
  color: var(--green-on-dark, #e1f3df);
  border: 1px solid rgb(3 123 0 / .45);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.ntchat-toast[hidden] { display: none; }

.ntchat-form { display: flex; gap: 6px; align-items: flex-end; }
.ntchat-attach,
.ntchat-mic,
.ntchat .ntchat-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  box-sizing: border-box;
}
.ntchat-attach,
.ntchat-mic {
  position: relative;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-muted);
}
.ntchat-attach:hover,
.ntchat-mic:hover { color: var(--c-ink); border-color: var(--c-gold); }
.ntchat-mic.is-recording {
  border-color: var(--c-danger);
  background: rgba(248, 113, 113, 0.18);
  color: var(--c-danger);
}
.ntchat-mic:disabled { opacity: 0.45; cursor: wait; }
.ntchat-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ntchat .ntchat-send { border: 0; background: var(--c-grad); color: #FFFFFF; }
.ntchat .ntchat-send:disabled { opacity: 0.45; cursor: not-allowed; }
.ntchat .ntchat-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  max-height: 128px;
  margin: 0;
  padding: 10px 11px;
  resize: none;
  overflow-y: hidden;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.38;
  background: var(--c-bg);
  color: var(--c-ink);
  box-sizing: border-box;
}
.ntchat .ntchat-form textarea::placeholder { color: var(--c-muted); }
.ntchat .ntchat-form textarea:focus { border-color: var(--c-gold); outline: none; }
.ntchat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ntchat-hint {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: max-content;
  max-width: 268px;
  padding: 11px 8px 11px 14px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: 15px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  animation: ntchat-hint-in 0.3s ease-out;
}
[data-theme="light"] .ntchat-hint {
  background: #FFFFFF;
  border-color: var(--green-border, #cce5ca);
  box-shadow: 0 10px 26px rgb(23 48 22 / .14);
}
.ntchat-hint-text {
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.38;
}
.ntchat-hint-text:hover { color: var(--c-gold); }
.ntchat-hint-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -3px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-muted);
  cursor: pointer;
}
.ntchat-hint[hidden] { display: none; }
.ntchat.is-open .ntchat-hint { display: none; }
@keyframes ntchat-hint-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .ntchat { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .ntchat-fab { width: 56px; height: 56px; }
  .ntchat-fab svg { width: 25px; height: 25px; }
  .ntchat.is-open { inset: 0; }
  .ntchat-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ntchat-top, 0px);
    bottom: auto;
    width: auto;
    height: var(--ntchat-h, 100dvh);
    border: 0;
    border-radius: 0;
    animation-name: ntchat-up;
    animation-duration: 0.24s;
  }
  .ntchat-head { padding-top: max(13px, env(safe-area-inset-top)); }
  .ntchat-foot { padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  .ntchat .ntchat-form textarea,
  .ntchat .ntchat-contact input { font-size: 16px; }
  .ntchat-attach,
  .ntchat-mic,
  .ntchat .ntchat-send { width: 40px; height: 40px; }
  .ntchat-hint { bottom: 68px; max-width: min(250px, calc(100vw - 28px)); }
}

@keyframes ntchat-up {
  from { transform: translateY(100%); }
  to { transform: none; }
}
html.ntchat-locked, html.ntchat-locked body { overflow: hidden; }
html.ntchat-locked body { position: fixed; left: 0; right: 0; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .ntchat-panel, .ntchat-hint { animation: none; }
  .ntchat-fab { transition: none; }
  .ntchat-fab.is-calling::before, .ntchat-fab.is-calling::after { animation: none; }
  .ntchat-rec-dot { animation: none; }
}
