#edac-chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-weight: 600;
}

#edac-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 380px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  z-index: 9999;
  overflow: hidden;
  border: 1px solid #ececec;
}

.edac-hidden { display: none; }

.edac-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

#edac-chat-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

#edac-chat-body {
  padding: 16px;
  background: #fff;
  max-height: 75vh;
  overflow-y: auto;
}

.edac-msg.bot {
  background: #f7f7f8;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.edac-small-text {
  color: #666;
  font-size: 13px;
  margin: -4px 0 14px;
}

.edac-quick-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.edac-quick {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

#edac-ai-wrap label,
#edac-form-wrap label {
  display: block;
  margin: 10px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

#edac-ai-wrap textarea,
#edac-form-wrap input,
#edac-form-wrap textarea,
#edac-form-wrap select {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 14px;
  padding: 12px 14px;
  box-sizing: border-box;
  background: #fff;
}

#edac-get-ai-reply,
#edac-submit,
.edac-book-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 600;
}

#edac-get-ai-reply,
#edac-submit {
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.edac-book-link {
  background: #f3f3f3;
  color: #111;
}

.edac-loading {
  padding: 12px 0;
  color: #666;
  font-size: 14px;
}
