* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f2ee;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 16px;
}

#widget {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 64, 59, 0.08);
  max-width: 380px;
  width: 100%;
}

#header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#header-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

#header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  color: #00403b;
  letter-spacing: 0.02em;
}

#status {
  font-size: 14px;
  color: #6b7c7a;
  margin: 24px 0;
  min-height: 20px;
  transition: color 0.2s;
}

#call-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: #00403b;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: background 0.2s, transform 0.1s;
}

#call-btn:hover {
  background: #005a52;
  transform: scale(1.04);
}

#call-btn:active {
  transform: scale(0.97);
}

#call-btn.active {
  background: #c0392b;
}

#call-btn.active:hover {
  background: #a93226;
}

#mode-hint {
  font-size: 11px;
  color: #aab5b3;
  margin-bottom: 16px;
}

#transcript {
  text-align: left;
  max-height: 220px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  border-top: 1px solid #eee;
  padding-top: 16px;
  min-height: 0;
}

#transcript:empty {
  border-top: none;
  padding-top: 0;
}

#transcript p {
  margin-bottom: 10px;
}

#transcript strong {
  color: #00403b;
}

/* Chat input */
#chat-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

#chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

#chat-input:focus {
  border-color: #00403b;
}

#chat-input::placeholder {
  color: #aab5b3;
}

#chat-send {
  padding: 10px 18px;
  background: #00403b;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

#chat-send:hover {
  background: #005a52;
}

#ai-notice {
  font-size: 11px;
  color: #aab5b3;
  margin-top: 20px;
}

/* Scrollbar */
#transcript::-webkit-scrollbar {
  width: 4px;
}

#transcript::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}
