.career-chat-panel {
  max-width: 46rem;
  margin-inline: auto;
}

.career-chat-panel h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

#career-chat-help {
  margin-block: 0.5rem 1.25rem;
  color: var(--muted);
}

.career-chat-form {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 1.4rem;
  background: color-mix(in srgb, var(--paper) 89%, var(--eucalypt-soft));
}

.career-chat-form:focus-within {
  border-color: var(--eucalypt);
}

.career-chat-input {
  position: relative;
  flex: 1;
  min-width: 0;
}

.career-chat-input textarea,
.career-chat-suggestion {
  padding: 0.35rem 0.45rem;
  font: inherit;
}

.career-chat-input textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
}

.career-chat-suggestion {
  position: absolute;
  inset: 0 auto auto 0;
  color: var(--muted);
  pointer-events: none;
}

.career-chat-form button {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--eucalypt);
  color: var(--paper);
  cursor: pointer;
}

.career-chat-form button:disabled {
  background: var(--eucalypt-soft);
  color: var(--muted);
  cursor: default;
}

.career-chat-messages:not(:empty) {
  display: grid;
  gap: 0.75rem;
  max-height: 30rem;
  overflow: auto;
  margin-bottom: 1rem;
}

.career-chat-message {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.career-chat-message[data-role="user"] {
  justify-self: end;
  max-width: 90%;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  background: var(--eucalypt-soft);
}

.career-chat-status:not(:empty) {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media print {
  .career-chat { display: none; }
}
