/* Discover presentation boundary.
   Owns evidence arrival, custody detail, AI-candidate review, and the
   consultant queue that routes unfinished evidence work into Assess. */

.arrivalWorkbench {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sm);
}

.arrivalWorkbenchHead {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.arrivalWorkbenchHead h3 {
  margin: 4px 0 6px;
  color: var(--navy);
}

.arrivalWorkbenchHead p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.custodyBadge {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e4f2f3;
  color: #286b72;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.arrivalModeGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.arrivalModeCard {
  position: relative;
  display: block;
  min-height: 176px;
  padding: 16px 15px 15px;
  border: 1px solid #d5e1e8;
  border-radius: 13px;
  background: linear-gradient(180deg, #fff, #fbfcfc);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.arrivalModeCard:hover {
  border-color: #79a8b6;
  transform: translateY(-1px);
}

.arrivalModeCard.selected {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--surface-tint), #fff);
  box-shadow: 0 0 0 3px rgba(45, 116, 133, .12);
}

.arrivalModeCard > input {
  position: absolute;
  top: 18px;
  right: 16px;
  width: auto;
  margin: 0;
  accent-color: var(--blue);
}

.arrivalModeCard strong,
.arrivalModeCard span,
.arrivalModeCard small {
  display: block;
}

.arrivalModeCard strong {
  color: var(--navy);
  font-size: 14px;
}

.arrivalModeCard > span:not(.arrivalModeIcon) {
  margin-top: 4px;
  color: #397683;
  font-size: 11px;
  font-weight: 800;
}

.arrivalModeCard small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.arrivalModeIcon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border: 1px solid rgba(45, 116, 133, .18);
  border-radius: 11px;
  background: var(--surface-tint);
  color: var(--blue);
}

.arrivalModeIcon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrivalModeCard:nth-child(2) .arrivalModeIcon {
  color: #4f7188;
  background: #f0f4f7;
}

.arrivalModeCard:nth-child(3) .arrivalModeIcon {
  color: #7b6848;
  background: #faf6ec;
}

.intakeDetailDrawer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dbe7ed;
}

.intakeDetailDrawer summary {
  color: #32566c;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.intakeDetailGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.intakeDetailGrid label {
  color: #394651;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.intakeDetailGrid input,
.intakeDetailGrid textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
}

.candidateObservationDrawer {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d8e4e7;
  border-radius: 13px;
  background: #fff;
}

.candidateObservationDrawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  cursor: pointer;
  list-style: none;
}

.candidateObservationDrawer > summary::-webkit-details-marker {
  display: none;
}

.candidateObservationDrawer > summary span,
.candidateObservationDrawer > summary strong,
.candidateObservationDrawer > summary small {
  display: block;
}

.candidateObservationDrawer > summary strong {
  color: var(--navy);
  font-size: 13px;
}

.candidateObservationDrawer > summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.candidateObservationDrawer > summary > b {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--blue);
  font-size: 12px;
}

.candidateObservationBody {
  padding: 15px;
  border-top: 1px solid var(--line);
}

.candidateBoundaryNotice {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 3px solid var(--attention);
  background: #fff8eb;
  color: #6b4618;
  font-size: 11px;
  line-height: 1.4;
}

.candidateObservationSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.candidateObservationSummary span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.candidateObservationSummary b {
  color: var(--navy);
}

.candidateObservationList {
  display: grid;
  gap: 10px;
  max-height: 720px;
  margin-top: 12px;
  overflow: auto;
}

.candidateObservationRow {
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--attention);
  border-radius: 11px;
  background: #fff;
}

.candidateObservationRow[data-candidate-disposition="retain_candidate"] {
  border-left-color: var(--verified);
}

.candidateObservationRow[data-candidate-disposition="route_to_interview"] {
  border-left-color: var(--instrumented);
}

.candidateObservationRow[data-candidate-disposition="dismissed"] {
  border-left-color: #9aa5aa;
  opacity: .78;
}

.candidateObservationRow header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.candidateObservationRow header span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.candidateObservationRow h4 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 13px;
}

.candidateObservationRow > p {
  margin: 11px 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.48;
}

.candidateObservationRow dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.candidateObservationRow dl div {
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--soft);
}

.candidateObservationRow dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.candidateObservationRow dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.candidateObservationDecision {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.candidateObservationDecision label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.candidateObservationDecision select,
.candidateObservationDecision textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.candidateObservationEmpty {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed #cad8dc;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
}

.candidateObservationEmpty strong {
  color: var(--navy);
}

.activeWorkQueue {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(63, 83, 106, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(34, 42, 52, .055);
}

.activeWorkQueue h3 {
  margin: 3px 0 4px;
  color: var(--navy);
  font-size: 16px;
}

.activeWorkQueue p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.queueEyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.activeWorkQueueActions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.activeQueueButton {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid rgba(25, 95, 198, .18);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.activeQueueButton::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--blue);
}

.activeQueueButton[data-queue-tone="confirm"]::before {
  background: var(--r4);
}

.activeQueueButton[data-queue-tone="follow-up"]::before {
  background: var(--r1);
}

.activeQueueButton[data-queue-tone="sensitive"]::before {
  background: var(--r0);
}

.activeQueueButton:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 10px 18px rgba(7, 24, 63, .08);
  transform: translateY(-1px);
}

.activeQueueButton[data-queue-tone="confirm"]:hover {
  border-color: rgba(139, 104, 79, .48);
  color: var(--hz4t);
}

.activeQueueButton[data-queue-tone="follow-up"]:hover {
  border-color: rgba(217, 131, 36, .48);
  color: #7a4b00;
}

.activeQueueButton[data-queue-tone="sensitive"]:hover {
  border-color: rgba(179, 64, 47, .44);
  color: var(--r0t);
}

.activeQueueButton strong,
.activeQueueButton span {
  display: block;
}

.activeQueueButton strong {
  font-size: 22px;
  line-height: 1;
}

.activeQueueButton span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .arrivalWorkbenchHead {
    display: block;
  }

  .custodyBadge {
    display: inline-block;
    margin-top: 12px;
  }

  .arrivalModeGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .arrivalModeCard {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .activeWorkQueue {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .candidateObservationRow dl,
  .candidateObservationDecision {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .intakeDetailGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .activeWorkQueueActions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
