.ci-connected-providers { margin-top: 16px; }
.ci-already-connected {
  display: flex; align-items: center; gap: 4px;
  width: fit-content; max-width: 100%; margin-top: 6px;
  background: #DBEAFE; color: #1D4ED8;
  border-radius: 999px; padding: 2px 7px; font-size: 11px; font-weight: 600;
}
.ci-already-connected::before,
.customer-introductions .ci-card[data-status="connected"] .ci-status::before {
  content: ""; width: 12px; height: 12px; flex-shrink: 0; background: currentColor;
  -webkit-mask: var(--connection-people-icon) center / contain no-repeat;
  mask: var(--connection-people-icon) center / contain no-repeat;
}
/* Customer-only introductions. Preserve the surrounding MTC service card. */
.cm-introduction-controls.customer-introductions {
  --ci-green: #166534;
  --ci-border: #e5e7eb;
  min-width: 0;
  max-width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ci-border);
  color: #374151;
  font-family: inherit;
  text-align: left;
}
.customer-introductions *, .customer-introduction-confirm * { box-sizing: border-box; }
.customer-introductions .ci-heading { margin: 0 0 4px; color: #111827; font-size: 1rem; line-height: 1.4; font-weight: 700; }
.customer-introductions .ci-count { margin: 0 0 12px; color: #6b7280; font-size: .8125rem; line-height: 1.5; }
.customer-introductions .ci-empty { margin: 0; padding: 14px 16px; border: 1px dashed #d1d5db; border-radius: 10px; background: #f9fafb; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.customer-introductions .ci-list { display: flex; flex-direction: column; gap: 10px; }
.customer-introductions .ci-card { min-width: 0; padding: 14px; border: 1px solid var(--ci-border); border-radius: 12px; background: #f9fafb; overflow-wrap: anywhere; }
.customer-introductions .ci-card[data-status="connected"] { border-color: #bbf7d0; background: #f0fdf4; }
.customer-introductions .ci-card { box-shadow: 0 0 0 1px rgba(34, 197, 94, .38), 0 0 10px 2px rgba(34, 197, 94, .24); }
.customer-introductions .ci-card:hover,
.customer-introductions .ci-card:focus-within { box-shadow: 0 0 0 1px rgba(34, 197, 94, .55), 0 0 12px 2px rgba(34, 197, 94, .34); }
.customer-introductions .ci-card:focus-visible { outline: 2px solid #166534; outline-offset: 3px; }
.customer-introductions .ci-card.ci-existing-connection[data-status="connected"] {
  background: #f0f8ff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .38), 0 0 10px 2px rgba(59, 130, 246, .24);
}
.customer-introductions .ci-card.ci-existing-connection[data-status="connected"]:hover,
.customer-introductions .ci-card.ci-existing-connection[data-status="connected"]:focus-within {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .55), 0 0 12px 2px rgba(59, 130, 246, .34);
}
.customer-introductions .ci-card[data-status="pending"] {
  background: #fffbea;
  border-color: #f5d980;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, .38), 0 0 10px 2px rgba(234, 179, 8, .24);
}
.customer-introductions .ci-card[data-status="pending"]:hover,
.customer-introductions .ci-card[data-status="pending"]:focus-within {
  box-shadow: 0 0 0 1px rgba(234, 179, 8, .55), 0 0 12px 2px rgba(234, 179, 8, .34);
}
.customer-introductions .ci-card .ci-toggle { color: var(--ci-green); box-shadow: none; background: transparent; }
.customer-introductions .ci-provider { display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px; align-items: center; gap: 10px; }
.customer-introductions button { margin: 0; font: inherit; cursor: pointer; touch-action: manipulation; }
.customer-introductions .ci-avatar { display: grid; place-items: center; position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #e5e7eb; color: #4b5563; overflow: hidden; font-size: .9375rem; font-weight: 600; }
.customer-introductions .ci-avatar img { position: absolute; inset: 0; display: block; width: 48px; height: 48px; object-fit: cover; }
.customer-introductions .ci-identity { min-width: 0; }
.customer-introductions .ci-name { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: #166534; text-align: left; font-weight: 700; font-size: .9375rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.customer-introductions .ci-business-name { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: #6b7280; text-align: left; font-size: .8125rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; text-transform: none; }
:is(.customer-introductions, .ci-public-reputation) .ci-rating { display: block; margin-top: 3px; color: #6b7280; font-size: .75rem; line-height: 1.5; }
:is(.customer-introductions, .ci-public-reputation) .ci-rating { display: flex; flex-wrap: wrap; align-items: center; column-gap: 5px; }
:is(.customer-introductions, .ci-public-reputation) .ci-stars { display: inline-flex; flex: none; gap: 1px; color: #f59e0b; }
:is(.customer-introductions, .ci-public-reputation) .ci-star { display: block; width: 14px; height: 14px; overflow: visible; }
:is(.customer-introductions, .ci-public-reputation) .ci-review-count { white-space: nowrap; }
:is(.customer-introductions, .ci-public-reputation) .ci-new-provider { display: inline-block; margin-top: 3px; padding: 2px 7px; border: 1px solid #bfdbfe; border-radius: 20px; background: #dbeafe; color: #1e40af; font-size: 11px; line-height: 1.5; font-weight: 600; }
.ci-public-reputation .ci-rating { justify-content: center; }
.customer-introductions .ci-toggle { display: grid; place-items: center; width: 36px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #4b5563; }
.customer-introductions .ci-chevron { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.customer-introductions .ci-toggle[aria-expanded="true"] .ci-chevron { transform: rotate(225deg); }
.customer-introductions .ci-status { display: inline-block; max-width: 100%; margin-top: 10px; padding: 3px 9px; border-radius: 999px; background: #e5e7eb; color: #4b5563; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.customer-introductions .ci-card[data-status="pending"] .ci-status { background: #fef3c7; color: #92400e; }
.customer-introductions .ci-card[data-status="connected"] .ci-status { background: #dcfce7; color: #166534; display: inline-flex; align-items: center; gap: 4px; }
.customer-introductions .ci-content { margin: 10px 0 0; color: #374151; font-size: .875rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-introductions .ci-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce5de; }
.customer-introductions .ci-message { min-height: 36px; max-width: 100%; padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; font-size: .8125rem; line-height: 1.4; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.customer-introductions .ci-address-shared { color: #166534; font-size: .75rem; font-weight: 600; }
.customer-introductions .ci-address-controls { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-introductions .ci-share-addresses { white-space: normal; }
.customer-introductions .ci-address-pin { width: 1em; height: 1em; margin-right: .3em; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.customer-introduction-confirm footer button:focus-visible { outline: 2px solid #166534; outline-offset: 3px; }
.customer-introduction-confirm .ci-confirm-description p { margin: 0 0 14px; }
.customer-introduction-confirm .ci-confirm-description p:last-child { margin-bottom: 0; }
.customer-introduction-confirm .ci-credit-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border: 1px solid #fde68a; border-radius: 8px;
  background: #fffbeb; color: #92400e; font-weight: 700;
}
.customer-introduction-confirm .ci-notice-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 16px; height: 16px; margin-top: 3px;
  border: 1px solid currentColor; border-radius: 50%; font-size: 12px; line-height: 1;
}
.customer-introduction-confirm .ci-notice-icon::before { content: "i"; }
@media (pointer: coarse), (max-width: 480px) {
  .customer-introductions .ci-action, .customer-introduction-confirm footer button { min-height: 44px; }
}
.customer-introductions .ci-message { border-color: #bbf7d0; color: #166534; background: #dcfce7; }
.customer-introductions .ci-error, .customer-introduction-confirm .ci-error { margin: 12px 0 0; color: #b91c1c; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.customer-introductions .ci-error:empty, .customer-introduction-confirm .ci-error:empty { display: none; }
.customer-introductions button:not(.primary-btn):not(.secondary-btn):focus-visible { outline: 2px solid #166534; outline-offset: 3px; }
.customer-introduction-confirm footer button:focus { outline: none; box-shadow: none; }
.customer-introductions button:disabled, .customer-introduction-confirm button:disabled { opacity: .6; cursor: default; }
dialog.customer-introduction-confirm {
  --ci-top: max(16px, var(--safe-area-top, env(safe-area-inset-top, 0px)));
  --ci-bottom: max(16px, var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)), var(--android-bottom-safe-area, 0px));
  --ci-left: max(16px, var(--safe-area-left, env(safe-area-inset-left, 0px)));
  --ci-right: max(16px, var(--safe-area-right, env(safe-area-inset-right, 0px)));
  box-sizing: border-box;
  position: fixed;
  inset: var(--ci-top) var(--ci-right) var(--ci-bottom) var(--ci-left);
  width: min(440px, calc(100% - var(--ci-left) - var(--ci-right)));
  max-width: none;
  height: fit-content;
  min-height: 0;
  max-height: calc(100vh - var(--ci-top) - var(--ci-bottom));
  max-height: calc(100dvh - var(--ci-top) - var(--ci-bottom));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #374151;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.5;
  text-align: left;
}
dialog.customer-introduction-confirm[open] { display: flex; flex-direction: column; }
dialog.customer-introduction-confirm::backdrop { background: rgba(17, 24, 39, .6); }
.customer-introduction-confirm > header { flex: none; margin: 0; padding: 20px 20px 12px; border: 0; background: transparent; }
.customer-introduction-confirm h2 { margin: 0; color: #111827; font-size: 1.15rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.customer-introduction-confirm .ci-dialog-body { flex: 1 1 auto; min-height: 0; min-width: 0; padding: 0 20px 20px; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.customer-introduction-confirm .ci-dialog-body > p:first-child { margin: 0; }
.customer-introduction-confirm > footer { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 0; padding: 12px 20px 16px; border-top: 1px solid #e5e7eb; background: #fff; }
.customer-introduction-confirm footer button { margin: 0; font-family: inherit; cursor: pointer; touch-action: manipulation; }
@media (hover: hover) {
  .customer-introductions .ci-name:hover, .customer-introductions .ci-business-name:hover { text-decoration: underline; }
  .customer-introductions .ci-message:hover:not(:disabled) { border-color: #166534; }
}
@media (max-width: 480px) {
  .customer-introductions .ci-card { padding: 12px; }
  .customer-introductions .ci-provider { gap: 8px; }
  .customer-introductions .ci-actions > button { flex: 1 1 140px; min-width: 0; }
  .customer-introduction-confirm footer button { flex: 1 1 130px; min-width: 0; }
}
@media (max-height: 400px) {
  .customer-introduction-confirm > header { padding-block: 12px 8px; }
  .customer-introduction-confirm > footer { padding-block: 8px; }
}
