.widget {
  width: 900px;
  max-width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(26, 115, 232, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #E8EAED;
  font-family: 'Google Sans', 'Google Sans Text', 'Roboto', -apple-system, sans-serif;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 12px;
  background: #FFFFFF;
}

.menu {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5F6368;
  cursor: pointer;
}

.menu:hover {
  background: #F1F3F4;
}

.title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.titleText {
  font-family: 'Google Sans', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #1F1F1F;
  letter-spacing: -0.1px;
}

.modelPill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #DADCE0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #5F6368;
  margin-left: 4px;
}

.spacer {
  flex: 1;
}

.topbarBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5F6368;
  cursor: pointer;
}

.topbarBtn:hover {
  background: #F1F3F4;
}

.avatarCircle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #9B72CB, #D96570);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

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

/* User message */
.userMessage {
  align-self: flex-end;
  max-width: 80%;
  background: #F0F4F9;
  border-radius: 24px;
  padding: 14px 22px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #1F1F1F;
  font-family: 'Google Sans Text', sans-serif;
}

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

.sparkleAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4 0%, #9B72CB 50%, #D96570 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74, 130, 233, 0.25);
}

.sparkleAvatar svg {
  width: 20px;
  height: 20px;
}

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

.assistantContent p {
  font-family: 'Google Sans Text', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: #1F1F1F;
  margin-bottom: 14px;
}

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

.assistantContent strong {
  font-weight: 600;
  background: linear-gradient(135deg, #4285F4, #9B72CB);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Numbered list */
.numberedList {
  padding-left: 0;
  list-style: none;
  margin-bottom: 14px;
  counter-reset: gm-li;
}

.numberedList li {
  font-family: 'Google Sans Text', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: #1F1F1F;
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}

.numberedList li::before {
  content: counter(gm-li);
  counter-increment: gm-li;
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #F0F4F9;
  color: #1F1F1F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* Action buttons */
.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.actionBtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5F6368;
  cursor: pointer;
}

.actionBtn:hover {
  background: #F1F3F4;
}

.actionDivider {
  width: 1px;
  height: 20px;
  background: #DADCE0;
  margin: 0 4px;
}

/* Composer */
.composerWrap {
  padding: 20px 56px 28px;
  background: #FFFFFF;
}

.composer {
  background: #F0F4F9;
  border-radius: 28px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.composerBtn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.composerInput {
  flex: 1;
  font-family: 'Google Sans Text', sans-serif;
  font-size: 15.5px;
  color: #5F6368;
  line-height: 1.4;
  padding: 6px 0;
}

.composerSend {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #9B72CB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74, 130, 233, 0.3);
}

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

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: #5F6368;
  margin-top: 10px;
  font-family: 'Google Sans Text', sans-serif;
}
