.widget {
  width: 900px;
  max-width: 100%;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #E5E5E5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #F0F0F0;
  background: #FFFFFF;
  gap: 12px;
}

.sidebarIcon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8E8EA0;
  cursor: pointer;
}

.modelSelector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #0D0D0D;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.modelSelector:hover {
  background: #F7F7F7;
}

.modelVersion {
  color: #8E8EA0;
  font-weight: 500;
}

.chevron {
  width: 14px;
  height: 14px;
  color: #8E8EA0;
}

.spacer {
  flex: 1;
}

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

.topbarBtn:hover {
  background: #F7F7F7;
}

/* Chat area */
.chat {
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #FFFFFF;
}

/* User message */
.userMessage {
  align-self: flex-end;
  max-width: 75%;
  background: #F4F4F4;
  border-radius: 22px;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #0D0D0D;
}

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

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

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

.assistantContent {
  flex: 1;
  font-size: 16px;
  line-height: 1.65;
  color: #0D0D0D;
  padding-top: 4px;
}

.assistantContent p {
  margin-bottom: 14px;
}

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

.assistantContent strong {
  font-weight: 600;
  color: #0D0D0D;
}

/* Action buttons */
.actions {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  opacity: 0.6;
}

.actionBtn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8E8EA0;
  cursor: pointer;
}

.actionBtn:hover {
  background: #F7F7F7;
}

/* Composer */
.composerWrap {
  padding: 16px 48px 24px;
  background: #FFFFFF;
}

.composer {
  background: #F4F4F4;
  border-radius: 26px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
}

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

.composerInput {
  flex: 1;
  font-size: 16px;
  color: #8E8EA0;
  line-height: 1.4;
  padding: 4px 0;
}

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

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

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: #8E8EA0;
  margin-top: 10px;
}
