/* ANT admin collaboration chat shell */
.ant-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  width: min(100%, 52rem);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem) 0;
}

.ant-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.35rem, 1vw, 0.5rem);
}

.ant-eyebrow {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.ant-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ant-description {
  margin: 0;
  color: #475569;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  line-height: 1.5;
}

.ant-room-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1rem);
  min-height: min(70dvh, 44rem);
  padding: clamp(0.85rem, 2.5vw, 1.1rem);
  border: 0.0625rem solid #dbe4f0;
  border-radius: clamp(1rem, 3vw, 1.35rem);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
}

.ant-mention-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ant-mention-button {
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
  border: 0.0625rem solid #cbd5e1;
  border-radius: 999rem;
  background: #ffffff;
  color: #1e293b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.ant-mention-button:hover,
.ant-mention-button:focus-visible {
  border-color: #64748b;
  background: #f1f5f9;
  outline: none;
}

.ant-message-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 18rem;
  max-height: 48dvh;
  overflow-y: auto;
  padding: clamp(0.7rem, 2vw, 0.9rem);
  border: 0.0625rem solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  overscroll-behavior: contain;
}

.ant-message {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  max-width: min(82%, 34rem);
}

.ant-message--left {
  align-self: flex-start;
  align-items: flex-start;
}

.ant-message--right {
  align-self: flex-end;
  align-items: flex-end;
}

.ant-message-speaker {
  padding: 0 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.ant-bubble {
  padding: 0.72rem 0.85rem;
  border-radius: 1rem;
  color: #1e293b;
  font-size: clamp(0.94rem, 2.5vw, 1rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ant-message--left .ant-bubble {
  border: 0.0625rem solid #e2e8f0;
  border-top-left-radius: 0.35rem;
  background: #ffffff;
}

.ant-message--right .ant-bubble {
  border-top-right-radius: 0.35rem;
  background: #0f172a;
  color: #ffffff;
}

.ant-message--handoff {
  max-width: min(92%, 38rem);
}

.ant-handoff-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.ant-handoff-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ant-handoff-heading {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.ant-handoff-meta {
  margin-top: 0.2rem;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 800;
}

.ant-handoff-preview,
.ant-handoff-full {
  color: #1e293b;
  white-space: pre-wrap;
}

.ant-handoff-preview {
  padding: 0.65rem 0.75rem;
  border: 0.0625rem solid rgba(147, 197, 253, 0.8);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.ant-handoff-full {
  max-height: 18rem;
  overflow: auto;
  padding: 0.75rem;
  border: 0.0625rem solid rgba(29, 78, 216, 0.18);
  border-radius: 0.85rem;
  background: #ffffff;
}

.ant-handoff-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ant-copy-button,
.ant-expand-button {
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  border: 0.0625rem solid #1d4ed8;
  border-radius: 999rem;
  background: #1d4ed8;
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.ant-expand-button {
  border-color: #93c5fd;
  background: #ffffff;
  color: #1d4ed8;
}

.ant-copy-button:hover,
.ant-copy-button:focus-visible {
  background: #1e40af;
  outline: none;
}

.ant-expand-button:hover,
.ant-expand-button:focus-visible {
  border-color: #1d4ed8;
  background: #dbeafe;
  outline: none;
}

.ant-copy-status {
  min-height: 1.25rem;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
}

.ant-composer {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: clamp(0.75rem, 2vw, 1rem);
  border: 0.0625rem solid rgba(203, 213, 225, 0.9);
  border-radius: 1.25rem;
  background: #ffffff;
}

.ant-composer:focus-within {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
}

.ant-input-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ant-input {
  width: 100%;
  min-height: 5rem;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.ant-input::placeholder {
  color: #94a3b8;
}

.ant-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.ant-helper {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ant-send-button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.58rem 1rem;
  border: 0.0625rem solid #0f172a;
  border-radius: 999rem;
  background: #0f172a;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ant-send-button:hover,
.ant-send-button:focus-visible {
  background: #1e293b;
  outline: none;
}

.admin-ant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.55rem;
  border: 0.0625rem solid #cbd5e1;
  border-radius: 999rem;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.admin-ant-link:hover,
.admin-ant-link:focus-visible {
  border-color: #64748b;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
}

@media (max-width: 640px) {
  .ant-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ant-send-button {
    width: 100%;
  }
}

.ant-handoff-next-steps {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 0.0625rem dashed rgba(29, 78, 216, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ant-next-step-label {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 800;
  width: 100%;
}

.ant-next-step-button {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 0.0625rem solid #3b82f6;
  border-radius: 999rem;
  background: #3b82f6;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.ant-next-step-button:hover,
.ant-next-step-button:focus-visible {
  border-color: #2563eb;
  background: #2563eb;
  outline: none;
}

.ant-context-button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.58rem 1rem;
  border: 0.0625rem solid #cbd5e1;
  border-radius: 999rem;
  background: #ffffff;
  color: #1e293b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.ant-context-button:hover,
.ant-context-button:focus-visible {
  border-color: #64748b;
  background: #f1f5f9;
  outline: none;
}

@media (max-width: 640px) {
  .ant-context-button {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 8px;
  }
}

