.recruitment-chat {
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
}

.chat-shell {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  overflow: hidden;
}

.chat-head,
.chat-composer {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-head h1 {
  margin: 0;
  font-size: 22px;
}

.chat-head p {
  margin: 4px 0 0;
}

.chat-messages {
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.message-row {
  display: flex;
}

.message-row.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(580px, 88%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  line-height: 1.4;
}

.message-row.user .message-bubble {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: recruitmentTyping 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes recruitmentTyping {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
  background: #ffffff;
}

.quick-replies button {
  background: #eef2f4;
  color: var(--text);
  border: 1px solid var(--line);
}

.chat-composer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.recruitment-workspace {
  display: grid;
  gap: 14px;
  width: min(1420px, 100%);
}

.recruitment-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 220px auto auto;
  gap: 10px;
  align-items: end;
}

.recruitment-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.recruitment-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.recruitment-stat span {
  color: var(--muted);
  font-size: 12px;
}

.recruitment-stat strong {
  font-size: 20px;
}

.recruitment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recruitment-detail {
  display: grid;
  gap: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.detail-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .recruitment-toolbar,
  .chat-composer {
    grid-template-columns: 1fr;
  }
}
.recruitment-link-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.recruitment-link-row input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 700px) {
  .recruitment-link-row {
    align-items: stretch;
    flex-direction: column;
  }
}
