* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f7f9;
  color: #1f2329;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  max-width: 560px;
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

p {
  margin: 6px 0 0;
  color: #646a73;
  line-height: 1.5;
}

.status {
  flex: 0 0 auto;
  border: 1px solid #c9e8d3;
  border-radius: 999px;
  background: #edf9f0;
  color: #1f7a3f;
  padding: 4px 10px;
  font-size: 12px;
}

.panel,
.result {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-head p {
  font-size: 13px;
}

.secondary {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  background: #eef3ff;
  color: #2f62d6;
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border: 1px solid #d8e6ff;
  border-radius: 999px;
  background: #f3f7ff;
  color: #2355b8;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.tag.muted {
  border-color: #e5e6eb;
  background: #f7f8fa;
  color: #8f959e;
}

.message-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.message {
  border-radius: 8px;
  padding: 9px 10px;
  background: #f7f8fa;
}

.message.customer {
  background: #f4f8ff;
}

.message-meta {
  color: #8f959e;
  font-size: 12px;
}

.message p {
  margin: 4px 0 0;
  color: #1f2329;
  font-size: 14px;
}

label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
}

textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 14px;
  color: #1f2329;
  font: inherit;
  line-height: 1.5;
}

textarea:focus {
  border-color: #2f7cf6;
  outline: 2px solid rgba(47, 124, 246, 0.14);
}

button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: #2f7cf6;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

#recommendBtn {
  width: 100%;
}

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

.empty,
.error {
  color: #8f959e;
  font-size: 14px;
}

.error {
  color: #b42318;
}

.suggestion {
  position: relative;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fbfcfd;
}

.suggestion strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.suggestion p {
  margin-right: 54px;
  color: #1f2329;
}

.copy {
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 28px;
  padding: 0 9px;
  background: #eef3ff;
  color: #2f62d6;
  font-size: 12px;
}
