.widget {
  width: 900px;
  max-width: 100%;
  background: #FAF9F5;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(196, 104, 73, 0.12), 0 4px 16px rgba(26, 24, 24, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #E8E4DA;
  font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #E8E4DA;
  background: #FAF9F5;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logoMark {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logoText {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: #1A1818;
  letter-spacing: -0.3px;
}

.modelPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #F0EEE6;
  border: 1px solid #E8E4DA;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #5D5A51;
}

.modelDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C46849;
}

.spacer {
  flex: 1;
}

.topbarBtn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5D5A51;
  cursor: pointer;
}

.topbarBtn:hover {
  background: #F0EEE6;
}

/* Chat area */
.chat {
  padding: 36px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #FAF9F5;
}

/* User message */
.userMessage {
  align-self: flex-end;
  max-width: 78%;
  background: #F0EEE6;
  border: 1px solid #E8E4DA;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 16px;
  line-height: 1.55;
  color: #1A1818;
}

/* Assistant message */
.assistant {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1A1818;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar svg {
  width: 18px;
  height: 18px;
}

.assistantContent {
  flex: 1;
  padding-top: 2px;
}

.assistantContent p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #1A1818;
  margin-bottom: 14px;
  font-family: 'Inter', -apple-system, sans-serif;
}

.assistantContent p:last-child {
  margin-bottom: 0;
}

.assistantContent strong {
  font-weight: 600;
  color: #1A1818;
}

.assistantContent a {
  color: #C46849;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 104, 73, 0.3);
}

/* Action buttons */
.actions {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  opacity: 0.7;
}

.actionBtn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5D5A51;
  cursor: pointer;
}

.actionBtn:hover {
  background: #F0EEE6;
}

/* Composer */
.composerWrap {
  padding: 18px 56px 26px;
  background: #FAF9F5;
}

.composer {
  background: #FFFFFF;
  border: 1px solid #E8E4DA;
  border-radius: 16px;
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(196, 104, 73, 0.05);
}

.composerInput {
  font-size: 15.5px;
  color: #8A877E;
  line-height: 1.5;
  min-height: 22px;
}

.composerRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.composerBtn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5D5A51;
  cursor: pointer;
  flex-shrink: 0;
}

.composerBtn:hover {
  background: #F0EEE6;
}

.composerModelTag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #E8E4DA;
  border-radius: 999px;
  font-size: 12px;
  color: #5D5A51;
  cursor: pointer;
}

.composerSpacer {
  flex: 1;
}

.composerSend {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C46849;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

.composerSend svg {
  width: 16px;
  height: 16px;
}
