:root {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2937;
  background: linear-gradient(160deg, #eef6ff 0%, #ffffff 55%, #f3f8f0 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
}

.widget {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffffcc;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 16px 38px rgba(2, 16, 39, 0.08);
  backdrop-filter: blur(2px);
}

.widget__header h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.widget__header p {
  margin: 0 0 16px;
  color: #4b5563;
}

.widget__status {
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.widget__messages {
  margin-top: 12px;
  padding: 12px;
  min-height: 160px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fdfdfd;
  display: grid;
  gap: 8px;
}

.msg {
  padding: 10px;
  border-radius: 8px;
  line-height: 1.4;
}

.msg--user {
  background: #e6f4ff;
  border: 1px solid #bfdbfe;
}

.msg--assistant {
  background: #eef7ed;
  border: 1px solid #cce5c8;
}

.widget__estimate,
.widget__crm {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}

.widget__estimate ul,
.widget__crm ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.widget__form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 10px;
  font: inherit;
  resize: vertical;
}

.widget__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
}

button:hover:not(:disabled) {
  background: #f8fafc;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .widget {
    padding: 14px;
  }
}
