.member-match-intro {
  margin-top: 64px;
  max-width: 720px;
}
.member-match-intro h3 {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.05em;
}
.member-match-intro p {
  margin: 17px 0 0;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.call-member-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid #dacdde;
  border-radius: 6px;
  background: #fffaf7;
  color: #272033;
  font-size: 12px;
  line-height: 1.6;
}
.call-member-link > span {
  color: #68546c;
  font-size: 11px;
  font-weight: 400;
}
.call-member-link strong {
  font-size: 12px;
  font-weight: 600;
}
.member-match-widget {
  --match-ink: #272033;
  --match-muted: #625968;
  --match-border: #e5dce3;
  margin-top: 28px;
  overflow: hidden;
  border: 2px solid var(--match-ink);
  border-radius: 14px;
  background: #fffaf7;
  box-shadow: 8px 8px 0 var(--match-ink);
  color: var(--match-ink);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.025em;
  text-align: left;
}
.member-match-widget *,
.member-match-widget *::before,
.member-match-widget *::after {
  box-sizing: border-box;
}
.member-match-widget h3,
.member-match-widget h4,
.member-match-widget p,
.member-match-widget dl,
.member-match-widget dd {
  margin: 0;
}
.member-match-widget button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.member-match-widget button:focus-visible,
.member-match-widget summary:focus-visible {
  outline: 3px solid #9a2756;
  outline-offset: 3px;
}
.member-match-widget button:disabled {
  cursor: default;
}
.member-match-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 36px;
}
.member-match-heading > div {
  display: flex;
  align-items: center;
  gap: 20px;
}
.member-match-brand {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.055em;
}
.member-match-brand > span {
  color: #f95083;
}
.member-match-kicker {
  display: block;
  color: var(--match-muted);
  font-size: 11px;
  font-weight: 400;
}
.member-match-widget h3 {
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.05em;
}
.member-match-heading p {
  margin-top: 14px;
  color: var(--match-muted);
  font-size: 14px;
}
.member-match-demo-label {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid #d8ccd5;
  border-radius: 20px;
  color: var(--match-muted);
  font-size: 10px;
  letter-spacing: 0;
}
.member-match-cases {
  display: flex;
  gap: 8px;
  padding: 0 36px 26px;
  flex-wrap: wrap;
}
.member-match-cases button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #cdbeca;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s;
}
.member-match-cases button:hover {
  background: #f7eefa;
}
.member-match-cases button[aria-pressed="true"] {
  border-color: var(--match-ink);
  background: #ece6ff;
  box-shadow: 2px 2px 0 var(--match-ink);
}
.member-match-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin: 0 36px 26px;
  border: 1.5px solid var(--match-ink);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.member-match-incoming {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--match-border);
  background: #f0eaff;
}
.member-match-call-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}
.member-match-phone-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--match-ink);
  border-radius: 8px;
  background: #fffaf7;
  box-shadow: 2px 2px 0 var(--match-ink);
}
.member-match-phone-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.member-match-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #279362;
}
.member-match-number {
  display: block;
  margin-top: 24px;
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.member-match-call-example {
  display: block;
  margin-top: 7px;
  color: var(--match-muted);
  font-size: 11px;
}
.member-match-request {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #d2c7e9;
  border-radius: 8px;
  background: #fffaf7;
}
.member-match-request > span,
.member-match-memo > span,
.member-match-followup > span,
.member-match-new-note > span {
  display: block;
  font-size: 10px;
  font-weight: 600;
}
.member-match-request p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.75;
}
.member-match-steps {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.member-match-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--match-muted);
  font-size: 12px;
}
.member-match-steps li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #c7b8d9;
  border-radius: 50%;
  background: #ffffff80;
  font-size: 10px;
}
.member-match-steps li.is-active {
  color: var(--match-ink);
  font-weight: 600;
}
.member-match-steps li.is-active > span {
  border-color: var(--match-ink);
  background: #ffdae7;
}
.member-match-steps li.is-done > span {
  border-color: #9cb6a4;
  background: #dcf1e0;
  color: #25583b;
}
.member-match-replay {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  margin-top: 24px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid #a493b8;
  background: transparent;
  font-size: 11px !important;
  font-weight: 600 !important;
}
.member-match-replay > span {
  font-size: 18px;
}
.member-match-record {
  min-width: 0;
  min-height: 496px;
  padding: 28px;
  background: #fff;
}
.member-match-profile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.member-match-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--match-ink);
  border-radius: 12px;
  background: #ffe2a9;
  font-size: 17px;
  font-weight: 700;
}
.member-match-profile > div {
  min-width: 0;
}
.member-match-source-label {
  display: block;
  margin-bottom: 6px;
  color: var(--match-muted);
  font-size: 10px;
}
.member-match-record h4 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.04em;
}
.member-match-profile h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-match-profile h4 > span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff0d5;
  color: #745117;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}
.member-match-profile p {
  margin-top: 6px;
  color: var(--match-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.member-match-found {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: #28613f;
  font-size: 10px;
}
.member-match-found svg,
.member-match-followup button svg,
.member-match-primary svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.member-match-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
  margin: 22px 0 !important;
  padding: 18px 0;
  border-top: 1px solid var(--match-border);
  border-bottom: 1px solid var(--match-border);
}
.member-match-facts dt {
  margin-bottom: 6px;
  color: var(--match-muted);
  font-size: 10px;
}
.member-match-facts dd {
  font-size: 12px;
  font-weight: 600;
}
.member-match-facts small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 400;
}
.member-match-memo {
  padding: 14px 16px;
  border: 1px solid #e7ddc5;
  border-radius: 7px;
  background: #fff8e7;
}
.member-match-memo p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.75;
}
.member-match-original {
  margin-top: 12px;
  color: var(--match-muted);
  font-size: 11px;
}
.member-match-original summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.member-match-original summary::-webkit-details-marker {
  display: none;
}
.member-match-original summary > span {
  font-size: 15px;
}
.member-match-original[open] summary > span {
  transform: rotate(90deg);
}
.member-match-original > div {
  padding: 14px 16px;
  border: 1px solid var(--match-border);
  border-radius: 6px;
  background: #faf7fa;
}
.member-match-original dl {
  display: grid;
  gap: 6px;
}
.member-match-original dl > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}
.member-match-original dd {
  color: var(--match-ink);
}
.member-match-original p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--match-border);
  font-size: 10px;
}
.member-match-followup {
  margin-top: 14px;
  padding-top: 17px;
  border-top: 1px solid var(--match-border);
}
.member-match-followup > span {
  color: #9a2756;
}
.member-match-followup p {
  margin-top: 6px;
  color: var(--match-muted);
  font-size: 12px;
  line-height: 1.75;
}
.member-match-followup small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 400;
}
.member-match-followup button,
.member-match-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-top: 15px;
  padding: 9px 15px;
  border: 1px solid var(--match-ink);
  border-radius: 5px;
  background: #ffdae7;
  box-shadow: 2px 2px 0 var(--match-ink);
  font-size: 11px !important;
  font-weight: 600 !important;
}
.member-match-followup button:hover,
.member-match-primary:hover {
  background: #ffc5d9;
}
.member-match-followup button:disabled,
.member-match-primary:disabled {
  border-color: #b7d3bf;
  background: #e8f5eb;
  color: #28613f;
  box-shadow: none;
}
.member-match-record.is-waiting {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.member-match-search-icon,
.member-match-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 1px solid var(--match-ink);
  border-radius: 14px;
  background: #ece6ff;
  box-shadow: 3px 3px 0 var(--match-ink);
}
.member-match-search-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.member-match-widget[data-stage="lookup"] .member-match-search-icon {
  animation: member-match-lookup 0.6s ease-out both;
}
.member-match-record.is-waiting > p,
.member-match-record.is-new > p,
.member-match-record.is-shared > p {
  margin-top: 12px;
  color: var(--match-muted);
  font-size: 12px;
  line-height: 1.8;
}
.member-match-empty-icon {
  background: #ffe2a9;
  font-size: 28px;
  font-weight: 400;
}
.member-match-new-note {
  margin-top: 24px;
  padding: 17px;
  border: 1px solid var(--match-border);
  border-radius: 7px;
  background: #faf7fa;
}
.member-match-new-note p {
  margin-top: 6px;
  font-size: 12px;
}
.member-match-new-note small {
  display: block;
  margin-top: 9px;
  color: #28613f;
  font-size: 10px;
}
.member-match-new-note.is-recorded {
  border-color: #b7d3bf;
  background: #f1faf3;
}
.member-match-candidates {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.member-match-candidates button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #cfc2d7;
  border-radius: 7px;
  background: #fffaf7;
  text-align: left;
}
.member-match-candidates button:hover {
  border-color: var(--match-ink);
  background: #f4efff;
}
.member-match-candidates strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.member-match-candidates small {
  display: block;
  margin-top: 3px;
  color: var(--match-muted);
  font-size: 10px;
}
.member-match-candidate-arrow {
  margin-left: auto;
}
.member-match-choose-note {
  margin-top: 18px;
  color: var(--match-muted);
  font-size: 11px;
}
.member-match-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-top: 1px solid #dfd1dc;
  background: #f7f0f7;
}
.member-match-status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #7c599c;
}
.member-match-status-line p {
  font-size: 11px;
  line-height: 1.7;
}
.member-match-source {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--match-muted);
  font-size: 10px;
}
@keyframes member-match-lookup {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
    background: #ffdae7;
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 1000px) {
  .member-match-heading {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 26px;
  }
  .member-match-cases {
    padding: 0 26px 24px;
  }
  .member-match-workspace {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    margin: 0 26px 24px;
  }
  .member-match-incoming,
  .member-match-record {
    padding: 22px;
  }
  .member-match-found > span {
    display: none;
  }
  .member-match-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .member-match-source {
    display: none;
  }
  .member-match-status-line {
    padding: 16px 26px;
  }
}
@media (max-width: 680px) {
  .member-match-intro {
    margin-top: 42px;
  }
  .member-match-intro h3 {
    font-size: 29px;
  }
  .member-match-intro p {
    margin-top: 14px;
    font-size: 13px;
  }
  .call-member-link {
    padding: 9px 11px;
  }
  .member-match-widget {
    margin-top: 23px;
    box-shadow: 4px 4px 0 var(--match-ink);
  }
  .member-match-heading {
    padding: 23px 18px 22px;
  }
  .member-match-heading > div {
    gap: 12px;
    flex-wrap: wrap;
  }
  .member-match-brand {
    font-size: 21px;
  }
  .member-match-kicker {
    font-size: 10px;
  }
  .member-match-widget h3 {
    font-size: 27px;
  }
  .member-match-heading p {
    font-size: 12px;
    line-height: 1.8;
  }
  .member-match-cases {
    gap: 6px;
    padding: 0 18px 20px;
  }
  .member-match-cases button {
    flex: 1;
    padding: 8px 5px;
    font-size: 11px;
    white-space: nowrap;
  }
  .member-match-workspace {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 18px 20px;
  }
  .member-match-incoming {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--match-border);
  }
  .member-match-number {
    margin-top: 18px;
    font-size: 25px;
  }
  .member-match-request {
    margin-top: 18px;
  }
  .member-match-steps {
    gap: 9px;
    margin-top: 20px;
  }
  .member-match-replay {
    margin-top: 15px;
  }
  .member-match-record {
    min-height: 490px;
    padding: 22px 20px;
  }
  .member-match-profile {
    gap: 10px;
  }
  .member-match-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .member-match-profile h4 {
    font-size: 20px;
  }
  .member-match-source-label {
    font-size: 9px;
  }
  .member-match-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .member-match-status-line {
    align-items: flex-start;
    padding: 14px 18px;
  }
  .member-match-status-dot {
    margin-top: 6px;
  }
  .member-match-status-line p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .member-match-widget *,
  .member-match-widget *::before,
  .member-match-widget *::after {
    animation: none !important;
    transition: none !important;
  }
}
