:root {
  --lcw-bg: rgba(8, 8, 10, 0.96);
  --lcw-panel: rgba(18, 18, 22, 0.92);
  --lcw-panel-2: rgba(25, 25, 31, 0.82);
  --lcw-panel-3: rgba(32, 32, 38, 0.74);
  --lcw-border: rgba(255, 255, 255, 0.08);
  --lcw-border-strong: rgba(255, 255, 255, 0.14);
  --lcw-text: rgba(255, 255, 255, 0.96);
  --lcw-text-soft: rgba(255, 255, 255, 0.68);
  --lcw-text-muted: rgb(179, 141, 77); /* rgba(255, 255, 255, 0.46); */
  --lcw-accent: /*rgb(179, 141, 77);*/ #d8dde7;
  --lcw-accent-soft: rgb(179, 141, 77); /*rgba(216, 221, 231, 0.14);*/
  --lcw-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 10px 34px rgba(0, 0, 0, 0.35);
  --lcw-radius-xl: 22px;
  --lcw-radius-lg: 18px;
  --lcw-radius-md: 14px;
  --lcw-radius-sm: 10px;
  --lcw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lcw-font: "Cormorant Garamond", serif;
}

.lcw-root,
.lcw-root * {
  box-sizing: border-box;
}

.lcw-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: var(--lcw-font);
  color: var(--lcw-text);
}

.lcw-widget {
  position: relative;
}

.lcw-launcher-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.lcw-nudge {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 12px);
  max-width: min(300px, calc(100vw - 48px));
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(32,32,38,0.96), rgba(16,16,20,0.96));
  color: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.05);
  font: inherit;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: normal;
  text-align: left;
  animation: lcw-nudge-in 280ms ease, lcw-nudge-float 2.2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.lcw-nudge::after {
  content: '';
  position: absolute;
  right: 22px;
  top: calc(100% - 2px);
  width: 10px;
  height: 10px;
  background: rgba(16,16,20,0.96);
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transform: rotate(45deg);
}

.lcw-nudge-text {
  display: block;
}

@keyframes lcw-nudge-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lcw-nudge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.lcw-launcher {
  position: relative;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(36,36,42,0.98), rgba(10,10,12,0.98));
  box-shadow: var(--lcw-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 240ms var(--lcw-ease), box-shadow 240ms var(--lcw-ease), border-color 240ms var(--lcw-ease);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lcw-launcher:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 90px rgba(0,0,0,0.54), 0 12px 36px rgba(0,0,0,0.36);
}

.lcw-launcher:focus-visible,
.lcw-icon-button:focus-visible,
.lcw-primary-button:focus-visible,
.lcw-pill:focus-visible,
.lcw-send-button:focus-visible,
.lcw-text-link:focus-visible,
.lcw-contact-link:focus-visible,
.lcw-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 221, 231, 0.24);
}

.lcw-launcher svg {
  width: 29px;
  height: 29px;
  opacity: 0.95;
  fill: white;
}

.lcw-panel {
  position: absolute;
  right: 0;
  bottom: 88px;
  width: min(392px, calc(100vw - 24px));
  height: min(760px, calc(100dvh - 112px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--lcw-radius-xl);
  border: 1px solid var(--lcw-border);
  background:
    linear-gradient(180deg, rgba(24,24,30,0.96), rgba(10,10,12,0.98));
  box-shadow: var(--lcw-shadow);
  transform-origin: bottom right;
  transition: opacity 220ms var(--lcw-ease), transform 220ms var(--lcw-ease), visibility 220ms var(--lcw-ease);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.lcw-panel[hidden] {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  visibility: hidden;
  pointer-events: none;
}

.lcw-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 38%);
}

.lcw-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

.lcw-header-copy {
  min-width: 0;
}

.lcw-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lcw-text-muted);
  margin-bottom: 6px;
}

.lcw-title {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.lcw-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--lcw-text-soft);
}

.lcw-header-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lcw-icon-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lcw-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms var(--lcw-ease), border-color 180ms var(--lcw-ease), background 180ms var(--lcw-ease);
}

.lcw-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.lcw-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lcw-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.lcw-view::-webkit-scrollbar {
  width: 10px;
}

.lcw-view::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.11);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.lcw-view-inner {
  padding: 18px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.lcw-welcome {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 100%;
}

.lcw-welcome .lcw-primary-button {
  margin-top: auto;
}

.lcw-welcome .lcw-primary-button {
  margin-top: auto;
  margin-bottom: 4px;
}

.lcw-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.lcw-card h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.lcw-card p {
  margin: 0;
  color: var(--lcw-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.lcw-primary-button {
  appearance: none;
  border: 0;
  width: 100%;
  border-radius: 18px;
  padding: 15px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: #0a0a0c;
  background: linear-gradient(180deg, #f3f6fb, #d9dee8);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  transition: transform 180ms var(--lcw-ease), box-shadow 180ms var(--lcw-ease), opacity 180ms var(--lcw-ease);
}

.lcw-primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.28);
}

.lcw-primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.lcw-welcome-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.lcw-welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--lcw-text-soft);
  font-size: 14px;
}

.lcw-conversation {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}

.lcw-messages {
  display: grid;
  gap: 12px;
}

.lcw-message-row {
  display: flex;
}

.lcw-message-row--assistant,
.lcw-message-row--system {
  justify-content: flex-start;
}

.lcw-message-row--user {
  justify-content: flex-end;
}

.lcw-message-bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

.lcw-message-row--assistant .lcw-message-bubble,
.lcw-message-row--system .lcw-message-bubble {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--lcw-text);
  border-bottom-left-radius: 8px;
}

.lcw-message-row--user .lcw-message-bubble {
  background: linear-gradient(180deg, rgba(233,239,247,0.98), rgba(208,214,225,0.95));
  color: #0b0d10;
  border: 1px solid rgba(255,255,255,0.38);
  border-bottom-right-radius: 8px;
}

.lcw-message-meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--lcw-text-muted);
}

.lcw-message-row--user .lcw-message-meta {
  color: rgba(10, 12, 15, 0.56);
}

.lcw-empty-state {
  display: grid;
  gap: 18px;
}

.lcw-empty-copy {
  color: var(--lcw-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.lcw-prompt-grid {
  display: grid;
  gap: 10px;
}

.lcw-pill {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--lcw-text);
  border-radius: 16px;
  padding: 13px 14px;
  cursor: pointer;
  transition: transform 180ms var(--lcw-ease), background 180ms var(--lcw-ease), border-color 180ms var(--lcw-ease);
}

.lcw-pill:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

.lcw-pill:disabled {
  opacity: 0.55;
  cursor: default;
}

.lcw-inline-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  color: var(--lcw-text-soft);
}

.lcw-cta-row,
.lcw-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 14px;
}

.lcw-contact-link,
.lcw-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--lcw-text);
  text-decoration: none;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 180ms var(--lcw-ease), border-color 180ms var(--lcw-ease), background 180ms var(--lcw-ease);
}

.lcw-contact-link:hover,
.lcw-text-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
}

.lcw-composer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.lcw-composer-shell {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.045);
}

.lcw-input {
  flex: 1;
  min-height: 22px;
  max-height: 126px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--lcw-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 10px 9px;
}

.lcw-input::placeholder {
  color: var(--lcw-text-soft);
}

.lcw-send-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(243,246,251,0.98), rgba(217,222,232,0.94));
  color: #090a0c;
  cursor: pointer;
  transition: transform 180ms var(--lcw-ease), opacity 180ms var(--lcw-ease), box-shadow 180ms var(--lcw-ease);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.lcw-send-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.lcw-send-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.lcw-composer-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--lcw-text-muted);
}

.lcw-typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.lcw-typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  animation: lcw-bounce 900ms infinite ease-in-out;
}

.lcw-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.lcw-typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes lcw-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.lcw-hidden {
  display: none !important;
}

.lcw-launcher.lcw-launcher-pulse {
  animation: lcw-launcher-pulse 900ms ease;
}

@keyframes lcw-launcher-pulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .lcw-root {
    right: 12px;
    bottom: 12px;
    left: auto;
  }

  .lcw-panel {
    right: 0;
    left: auto;
    width: min(392px, calc(100vw - 24px));
    height: min(78dvh, 720px);
    bottom: 82px;
  }

  .lcw-launcher {
    margin-left: 0;
    width: 66px;
    height: 66px;
  }

  .lcw-input {
  font-size: 16px;
}

  .lcw-panel {
    max-height: calc(100dvh - 94px);
  }

  .lcw-nudge {
    right: 4px;
    bottom: calc(100% + 10px);
    max-width: min(200px, calc(100vw - 32px));
    font-size: 13px;
    padding: 9px 12px;
  }
}
