body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #f9f5ee 0%, #efe7da 100%);
  color: #18212b;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.widget-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  gap: 16px;
  box-sizing: border-box;
}

.widget-header,
.widget-thread,
.widget-composer,
.widget-fallback,
.widget-starters {
  border-radius: 18px;
  border: 1px solid rgba(24, 33, 43, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 40px rgba(24, 33, 43, 0.08);
}

.widget-header,
.widget-fallback {
  padding: 18px;
}

.widget-header h1,
.widget-fallback h1 {
  margin: 6px 0 8px;
  font-size: 1.35rem;
}

.widget-kicker,
.widget-caption,
.widget-status,
.widget-fallback p {
  margin: 0;
  color: #5a6673;
  line-height: 1.6;
}

.widget-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
}

.widget-chip,
.widget-fallback-link,
.widget-composer button {
  border: 0;
  border-radius: 999px;
  background: #b95c32;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.widget-chip {
  padding: 10px 14px;
}

.widget-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  min-height: 260px;
  overflow-y: auto;
}

.widget-message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.55;
}

.widget-message-assistant {
  align-self: flex-start;
  background: #f3efe6;
}

.widget-message-visitor {
  align-self: flex-end;
  background: #1f3347;
  color: #fff;
}

.widget-composer {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.widget-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 33, 43, 0.16);
  font: inherit;
  box-sizing: border-box;
}

.widget-composer button,
.widget-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

.widget-shell-fallback {
  justify-content: center;
}

.widget-fallback-link {
  margin-top: 14px;
  text-decoration: none;
}

@media (max-width: 480px) {
  .widget-shell {
    padding: 12px;
  }

  .widget-message {
    max-width: 100%;
  }
}