/* Embedded contact-material identity-confirmation component only. */
.contact-identity-confirmation {
  box-sizing: border-box;
  width: 100%;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(31, 78, 121, 0.08);
  padding: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.contact-identity-confirmation *,
.contact-identity-confirmation *::before,
.contact-identity-confirmation *::after { box-sizing: border-box; }

.cic-heading,
.cic-review-topline,
.cic-card-heading,
.cic-actions,
.cic-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cic-heading { align-items: flex-start; }
.cic-heading p,
.cic-heading h4,
.cic-heading span,
.cic-review p,
.cic-confirm-box p { margin: 0; }
.cic-heading p {
  color: #1f4e79;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.cic-heading h4 { color: #111827; font-size: 18px; line-height: 1.35; }
.cic-heading span { color: #4b5563; }

.cic-open,
.cic-primary,
.cic-secondary,
.cic-pager button {
  min-height: 44px;
  border: 1px solid #1f4e79;
  border-radius: 6px;
  padding: 9px 14px;
  color: #ffffff;
  background: #1f4e79;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.cic-open:hover,
.cic-primary:hover,
.cic-secondary:hover,
.cic-pager button:hover { color: #ffffff; background: #153a5b; border-color: #153a5b; }
.cic-open:focus-visible,
.cic-primary:focus-visible,
.cic-secondary:focus-visible,
.cic-pager button:focus-visible,
.cic-choice input:focus-visible,
.cic-confirm-box textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.cic-secondary,
.cic-pager button {
  color: #1f4e79;
  background: #ffffff;
  border-color: #6b8eae;
}
.cic-secondary:hover,
.cic-pager button:hover { color: #ffffff; }
.cic-open:disabled,
.cic-primary:disabled,
.cic-secondary:disabled,
.cic-pager button:disabled {
  color: #52606d;
  background: #e5edf5;
  border-color: #b6c5d4;
  cursor: not-allowed;
}

.cic-boundary {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #1f4e79;
  background: #edf3f9;
  border-left: 4px solid #2e75b6;
  border-radius: 4px;
  font-weight: 600;
}
.cic-review { margin-top: 16px; }
.cic-review-topline {
  padding: 8px 0 12px;
  color: #374151;
  border-bottom: 1px solid #d8e2ec;
}
.cic-state,
.cic-empty {
  margin: 14px 0;
  padding: 12px;
  color: #374151;
  background: #f3f6fa;
  border-radius: 6px;
}
.cic-weak-hint {
  margin: 14px 0;
  color: #653f00;
  background: #fff7dd;
  border: 1px solid #e5bd63;
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 600;
}
.cic-alert {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #8a1c1c;
  background: #fff0f0;
  border: 1px solid #d99393;
  border-radius: 6px;
  font-weight: 600;
}
.cic-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #075e26;
  background: #e7f5ea;
  border: 1px solid #81b98e;
  border-radius: 6px;
  font-weight: 600;
}

.cic-review-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
  align-items: start;
}
.cic-candidates { display: grid; gap: 12px; }
.cic-source-card {
  min-width: 0;
  padding: 14px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}
.cic-subject { border-top: 4px solid #2e75b6; }
.cic-candidate { border-top: 4px solid #9c6500; }
.cic-candidate.is-selected { border-color: #1f4e79; box-shadow: 0 0 0 2px rgba(46, 117, 182, 0.2); }
.cic-card-heading { align-items: flex-start; color: #4b5563; font-size: 13px; }
.cic-card-heading strong { color: #1f4e79; font-size: 13px; }
.cic-source-card h5 { margin: 10px 0; color: #111827; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.cic-source-card dl {
  display: grid;
  grid-template-columns: minmax(112px, 0.7fr) minmax(0, 1.3fr);
  gap: 6px 10px;
  margin: 0;
}
.cic-source-card dt { color: #4b5563; font-weight: 700; }
.cic-source-card dd { min-width: 0; margin: 0; color: #111827; overflow-wrap: anywhere; }
.cic-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 36px;
  margin: -2px 0 10px;
  color: #1f2937;
  cursor: pointer;
  font-weight: 700;
}
.cic-choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #1f4e79; }
.cic-choice input:disabled + span { color: #52606d; cursor: not-allowed; }

.cic-confirm-box {
  margin-top: 14px;
  padding: 14px;
  color: #1f2937;
  background: #f7fafc;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}
.cic-confirm-box h5 { margin: 0 0 8px; color: #111827; font-size: 16px; }
.cic-confirm-box label { display: grid; gap: 6px; color: #1f2937; font-weight: 700; }
.cic-confirm-box textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 10px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #6b8eae;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
}
.cic-confirm-box textarea::placeholder { color: #6b7280; font-weight: 400; }
.cic-confirm-box textarea:disabled { color: #52606d; background: #eaf0f6; border-color: #b6c5d4; cursor: not-allowed; }
.cic-confirm-box textarea:disabled::placeholder { color: #52606d; opacity: 1; }
.cic-readonly { margin: 0 0 10px; color: #653f00; font-weight: 700; }
.cic-confirm-scope { margin: 10px 0; color: #374151; }
.cic-actions { justify-content: flex-start; flex-wrap: wrap; }
.cic-pager { margin-top: 14px; padding-top: 12px; color: #374151; border-top: 1px solid #d8e2ec; }
.cic-pager span { margin-right: auto; }

@media (max-width: 760px) {
  .contact-identity-confirmation { padding: 14px; }
  .cic-heading,
  .cic-review-topline,
  .cic-pager { align-items: stretch; flex-direction: column; }
  .cic-heading h4 { font-size: 17px; }
  .cic-open,
  .cic-review-topline .cic-secondary,
  .cic-pager button { width: 100%; }
  .cic-review-grid { grid-template-columns: minmax(0, 1fr); }
  .cic-source-card dl { grid-template-columns: minmax(106px, 0.8fr) minmax(0, 1.2fr); }
  .cic-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cic-actions button { width: 100%; }
  .cic-pager span { margin-right: 0; }
}
