.resume-assistant {
  position: fixed;
  right: 20px;
  bottom: 70px;
  z-index: 9999;
  font-family: "Open Sans", sans-serif;
}

.resume-assistant__toggle {
  background: #149ddd;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 157, 221, 0.45);
  transition: background 0.2s ease;
}

.resume-assistant__toggle:hover {
  background: #0f7fb3;
}

.resume-assistant__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 320px;
  max-width: calc(100vw - 40px);
  height: 440px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.resume-assistant__header {
  background: #173b6c;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.resume-assistant__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.resume-assistant__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-assistant__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.resume-assistant__chip {
  background: #eef6fb;
  color: #173b6c;
  border: 1px solid #cfe7f5;
  border-radius: 16px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.resume-assistant__chip:hover {
  background: #dcf0fa;
}

.resume-assistant__bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.resume-assistant__bubble--user {
  align-self: flex-end;
  background: #149ddd;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.resume-assistant__bubble--assistant {
  align-self: flex-start;
  background: #f1f3f6;
  color: #272829;
  border-bottom-left-radius: 4px;
}

.resume-assistant__bubble--pending {
  opacity: 0.6;
}

.resume-assistant__input-row {
  display: flex;
  border-top: 1px solid #e6e6e6;
  padding: 10px;
  gap: 8px;
}

.resume-assistant__input {
  flex: 1;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
}

.resume-assistant__input:focus {
  border-color: #149ddd;
}

.resume-assistant__send {
  background: #149ddd;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.resume-assistant__send:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 420px) {
  .resume-assistant__panel {
    width: calc(100vw - 24px);
    right: -8px;
  }
}
