/* Live Support — چت آنلاین انسانی (جدا از AI) */
:root {
  --ls-ink: #0c1f1a;
  --ls-muted: #5b6f68;
  --ls-surface: #f4faf7;
  --ls-panel: #ffffff;
  --ls-line: rgba(13, 92, 74, 0.12);
  --ls-accent: #0f766e;
  --ls-accent-2: #14b8a6;
  --ls-accent-deep: #115e59;
  --ls-danger: #b91c1c;
  --ls-shadow: 0 18px 50px rgba(12, 40, 34, 0.22);
  --ls-radius: 1.15rem;
  --ls-font: "Shabnam", Tahoma, sans-serif;
  /* بالای navbar sticky (۱۰۳۰) و مودال‌های عمومی */
  --ls-z-float: 1040;
  --ls-z-scrim: 1100;
  --ls-z-panel: 1110;
}

/* Float — سمت چپ صفحه (در RTL = inline-end) */
.ls-float {
  position: fixed;
  z-index: var(--ls-z-float);
  bottom: 1.25rem;
  inset-inline-start: auto;
  inset-inline-end: 1rem;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ls-accent-2), var(--ls-accent-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.45);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
}

.ls-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.55);
  color: #fff;
}

.ls-float:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 3px;
}

.ls-float__icon {
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}

.ls-float__badge {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  z-index: 2;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
  border: 2px solid #fff;
  pointer-events: none;
  animation: ls-badge-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ls-float__badge[hidden] {
  display: none !important;
}

/* فقط بعد از کارت پشتیبانی یا جلسهٔ قبلی */
.ls-float.is-dormant,
.ls-float[hidden] {
  display: none !important;
}

.ls-float.has-unread .ls-float__pulse {
  background: rgba(248, 113, 113, 0.55);
}

@keyframes ls-badge-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ls-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.45);
  animation: ls-pulse 2.4s ease-out infinite;
}

@keyframes ls-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 575.98px) {
  .ls-float {
    width: 52px;
    height: 52px;
    bottom: 1rem;
    inset-inline-start: auto;
    inset-inline-end: 0.75rem;
  }
}

/* Panel */
.ls-scrim {
  display: none;
}

.ls-panel {
  position: fixed;
  z-index: var(--ls-z-panel);
  bottom: 5.5rem;
  inset-inline-start: auto;
  inset-inline-end: 1rem;
  width: min(392px, calc(100vw - 1.5rem));
  max-height: min(640px, calc(100vh - 6.5rem));
  font-family: var(--ls-font);
  color: var(--ls-ink);
}

.ls-panel[hidden] {
  display: none !important;
}

.ls-panel.is-open .ls-panel__shell {
  animation: ls-rise 0.28s ease both;
}

@keyframes ls-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ls-panel__shell {
  display: flex;
  flex-direction: column;
  height: min(640px, calc(100vh - 6.5rem));
  max-height: inherit;
  background: var(--ls-panel);
  border-radius: var(--ls-radius);
  overflow: hidden;
  box-shadow: var(--ls-shadow);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

/* Header */
.ls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(45, 212, 191, 0.35), transparent 55%),
    linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
  color: #ecfdf5;
}

.ls-head__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.ls-back-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ecfdf5;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ls-back-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ls-back-btn:active {
  transform: scale(0.94);
}

.ls-back-btn:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

.ls-head__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.ls-head__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.ls-head__sub {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.ls-head__sub[hidden] {
  display: none !important;
}

.ls-head__actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.ls-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ls-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ls-icon-btn[hidden] {
  display: none !important;
}

/* Body */
.ls-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #e8f5f1 0%, var(--ls-surface) 28%, #eef6f3 100%);
}

/* Gate */
.ls-gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.35rem 1.75rem;
  gap: 0.55rem;
}

.ls-gate__visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 0.35rem;
  display: grid;
  place-items: center;
}

.ls-gate__orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5eead4, #0f766e 70%);
  opacity: 0.9;
  animation: ls-orb 3.5s ease-in-out infinite;
}

@keyframes ls-orb {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.ls-gate__icon {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  color: #fff;
}

.ls-gate__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ls-ink);
}

.ls-gate__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ls-muted);
  max-width: 28ch;
}

.ls-gate__hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ls-danger);
}

.ls-gate__hint[hidden] {
  display: none !important;
}

.ls-gate__hours {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.ls-gate__hours.is-closed {
  background: rgba(180, 83, 9, 0.1);
  color: #9a3412;
}

.ls-gate__hours[hidden] {
  display: none !important;
}

.ls-hours-banner {
  margin: 0 0.75rem 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(180, 83, 9, 0.1);
  color: #9a3412;
  font-size: 0.75rem;
  text-align: center;
}

.ls-hours-banner[hidden] {
  display: none !important;
}

.ls-notify-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  margin: 0.35rem 0.75rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 118, 110, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #0f766e;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ls-notify-bar[hidden] {
  display: none !important;
}

.ls-notify-bar__text {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex: 1;
  min-width: 12rem;
}

.ls-notify-bar__text i {
  margin-top: 0.15rem;
  color: #0284c7;
}

.ls-notify-bar__actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ls-notify-bar__btn {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.35rem 0.7rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.ls-notify-bar__btn--allow {
  background: linear-gradient(145deg, #0ea5e9, #0284c7);
  color: #fff;
}

.ls-notify-bar__btn--later {
  background: #fff;
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.ls-typing {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 1rem 0.45rem;
  font-size: 0.75rem;
  color: var(--ls-muted);
}

.ls-typing[hidden] {
  display: none !important;
}

.ls-typing__dots {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ls-accent);
  animation: ls-typing-blink 1s ease-in-out infinite;
}

@keyframes ls-typing-blink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* Buttons */
.ls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ls-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ls-btn--primary {
  margin-top: 0.55rem;
  background: linear-gradient(135deg, var(--ls-accent-2), var(--ls-accent));
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
}

.ls-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.36);
}

.ls-btn--ghost {
  background: #fff;
  color: var(--ls-ink);
  border: 1px solid var(--ls-line);
}

.ls-btn--danger {
  background: var(--ls-danger);
  color: #fff;
}

/* Chat */
.ls-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ls-chat[hidden] {
  display: none !important;
}

.ls-chat__meta {
  padding: 0.55rem 0.9rem 0;
}

.ls-chat__meta[hidden] {
  display: none !important;
}

.ls-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ls-accent-deep);
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.ls-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem 0.9rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  scroll-behavior: smooth;
  /* Bubble hizası: kendi sağda / karşı solda (RTL sayfada ters görünmesin) */
  direction: ltr;
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.07), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(15, 118, 110, 0.06), transparent 40%),
    linear-gradient(180deg, #eaf6f3 0%, #f3faf8 100%);
}

.ls-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  direction: rtl;
}

.ls-msg--system {
  align-self: center;
  max-width: 92%;
}

.ls-msg--bot {
  align-self: flex-start;
  align-items: flex-start;
}

.ls-msg--user {
  align-self: flex-end;
  align-items: flex-end;
}

.ls-msg__bubble {
  position: relative;
  padding: 0.55rem 0.75rem 0.35rem;
  border-radius: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.ls-msg--system .ls-msg__bubble {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ls-muted);
  border: 1px dashed rgba(15, 118, 110, 0.2);
  text-align: center;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  box-shadow: none;
}

.ls-msg--bot .ls-msg__bubble {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-bottom-left-radius: 0.28rem;
}

.ls-msg--welcome {
  max-width: 94%;
}

.ls-msg--welcome .ls-msg__bubble {
  padding: 0.75rem 0.9rem 0.55rem;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.14);
}

.ls-welcome__text {
  white-space: normal;
}

.ls-welcome__text p {
  margin: 0 0 0.65rem;
  line-height: 1.7;
}

.ls-welcome__text p:last-child {
  margin-bottom: 0;
}

.ls-msg--user .ls-msg__bubble {
  background: linear-gradient(145deg, #0f766e, #0d9488);
  color: #ecfdf5;
  border-bottom-right-radius: 0.28rem;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.18);
}

.ls-msg__body {
  white-space: pre-wrap;
}

.ls-msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  margin-top: 0.2rem;
  min-height: 0.95rem;
  direction: ltr;
}

.ls-msg__time {
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  opacity: 0.72;
  line-height: 1;
}

.ls-msg--bot .ls-msg__time {
  color: #64748b;
}

.ls-msg--user .ls-msg__time {
  color: rgba(236, 253, 245, 0.88);
}

.ls-msg__status {
  font-size: 0.68rem;
  color: rgba(236, 253, 245, 0.85);
  line-height: 1;
}

.ls-msg__status--read {
  color: #7dd3fc;
}

.ls-msg__status--fail,
.ls-msg--failed .ls-msg__bubble {
  color: #fecaca;
}

.ls-msg--failed .ls-msg__bubble {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca;
  box-shadow: none;
}

.ls-msg--failed .ls-msg__time {
  color: #b91c1c;
}

.ls-msg--media .ls-msg__bubble {
  padding: 0.35rem 0.35rem 0.3rem;
  overflow: hidden;
}

.ls-msg--media .ls-msg__meta {
  padding: 0 0.35rem 0.1rem;
}

/* Composer — Bale-style: image left, input, mic/send right */
.ls-composer {
  padding: 0.5rem 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--ls-line);
  backdrop-filter: blur(8px);
}

.ls-composer__row {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  direction: ltr;
}

.ls-composer__icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ls-composer__icon-btn:hover:not(:disabled) {
  color: var(--ls-accent);
  background: rgba(13, 148, 136, 0.1);
}

.ls-composer__icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.ls-composer__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ls-line);
  border-radius: 1.35rem;
  resize: none;
  max-height: 110px;
  padding: 0.55rem 0.95rem;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  background: #fff;
  color: var(--ls-ink);
  box-shadow: 0 1px 4px rgba(12, 40, 34, 0.04);
}

.ls-composer__input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.ls-composer__input:disabled {
  opacity: 0.7;
}

.ls-composer__action {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.ls-composer__mic,
.ls-composer__send {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.ls-composer__mic {
  background: transparent;
  color: #64748b;
  font-size: 1.2rem;
}

.ls-composer__mic:hover:not(:disabled) {
  color: var(--ls-accent);
  background: rgba(13, 148, 136, 0.1);
}

.ls-composer__mic:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ls-composer__mic[hidden],
.ls-composer__send[hidden] {
  display: none !important;
}

.ls-composer__send {
  background: linear-gradient(145deg, #14b8a6, #0f766e);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.ls-composer__send i {
  transform: translateX(1px) rotate(40deg);
}

.ls-composer__send:hover:not(:disabled) {
  transform: scale(1.05);
}

.ls-composer__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.ls-composer__note {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--ls-danger);
  text-align: center;
}

.ls-composer__note[hidden] {
  display: none !important;
}

.ls-msg__media {
  display: block;
  max-width: min(220px, 70vw);
}

.ls-msg__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.65rem;
}

.ls-msg__file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.ls-msg__file:hover {
  text-decoration: underline;
}

.ls-msg__audio {
  display: block;
  width: min(220px, 70vw);
  max-width: 100%;
  height: 36px;
}

.ls-rec {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(220, 38, 38, 0.25);
  margin-bottom: 0.15rem;
}

.ls-rec[hidden] {
  display: none !important;
}

.ls-rec__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  animation: ls-rec-pulse 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ls-rec-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.ls-rec__timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #b91c1c;
  min-width: 2.5rem;
}

.ls-rec__btn {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.35rem 0.7rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ls-rec__btn--cancel {
  margin-inline-start: auto;
  background: #f1f5f9;
  color: #334155;
}

.ls-rec__btn--send {
  background: var(--ls-accent);
  color: #fff;
}

/* Confirm overlay */
.ls-confirm {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 31, 26, 0.45);
  backdrop-filter: blur(3px);
}

.ls-confirm[hidden] {
  display: none !important;
}

.ls-confirm__card {
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.1rem;
  text-align: center;
  box-shadow: var(--ls-shadow);
  animation: ls-rise 0.2s ease both;
}

.ls-confirm__icon {
  font-size: 1.75rem;
  color: #c2410c;
  margin-bottom: 0.35rem;
}

.ls-confirm__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.ls-confirm__text {
  margin: 0.45rem 0 1rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ls-muted);
}

.ls-confirm__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .ls-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--ls-z-scrim);
    margin: 0;
    border: 0;
    padding: 0;
    /* کاملاً مات — سایت و اسکرول دیده نشود */
    background: #0b1f1c;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .ls-scrim[hidden] {
    display: none !important;
  }

  .ls-scrim.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .ls-float.is-panel-open {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    visibility: hidden;
  }

  html.ls-chat-open,
  body.ls-chat-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
    height: 100%;
    height: 100dvh;
  }

  html.ls-chat-open {
    scrollbar-width: none;
  }

  html.ls-chat-open::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  body.ls-chat-open {
    position: fixed;
    inset: 0;
    width: 100%;
  }

  .ls-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    width: 100vw;
    max-width: none;
    max-height: none;
    height: 100%;
    height: 100dvh;
    z-index: var(--ls-z-panel);
  }

  .ls-panel.is-open .ls-panel__shell {
    animation: ls-sheet-up 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes ls-sheet-up {
    from {
      opacity: 0.92;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .ls-panel__shell {
    height: 100%;
    max-height: none;
    min-height: 100%;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .ls-body {
    background: #fff;
  }

  .ls-head {
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
    border-radius: 0;
  }

  .ls-composer {
    padding-bottom: max(0.65rem, calc(0.35rem + env(safe-area-inset-bottom, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-float__pulse,
  .ls-gate__orb,
  .ls-panel.is-open .ls-panel__shell,
  .ls-confirm__card,
  .ls-scrim {
    animation: none;
    transition: none;
  }
}
