:root {
  --text-muted: var(--muted);
  --border: var(--line);
}
.service-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 32px 70px;
  min-height: 75vh;
}
.service-header {
  max-width: 1224px;
  margin: auto;
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 4px 0 28px;
}
.service-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.service-links a:hover,
.service-links a[aria-current] {
  color: var(--green);
  text-decoration: underline;
}
.service-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
  padding: 36px;
  min-width: 0;
}
.service-panel h1 {
  font-size: clamp(27px, 5vw, 40px);
}
.service-panel .page-intro {
  margin-bottom: 26px;
}
.service-panel .page-intro p {
  max-width: 65ch;
  line-height: 1.7;
}
.service-notice {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.service-notice.error {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 18px;
  min-width: 0;
}
.service-card h2,
.service-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}
.service-card p {
  line-height: 1.7;
  font-size: 14px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.service-card form {
  display: grid;
  gap: 16px;
}
.service-card .field {
  margin: 0;
}
.service-card .button {
  justify-content: center;
  text-decoration: none;
  max-width: 100%;
}
.service-card .button + .button {
  margin-top: 12px;
}
.service-form {
  max-width: 500px;
  display: grid;
  gap: 18px;
}
.service-form .button {
  justify-content: center;
}
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.service-actions .button {
  height: auto;
  min-height: 43px;
  text-decoration: none;
}
.service-badge {
  display: inline-block;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.service-badge.test {
  background: var(--bg-surface);
  color: var(--text-secondary);
}
.service-price {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 20px 0;
}
.service-section-title {
  margin: 28px 0 16px;
  font-size: 21px;
}
.service-record {
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.service-record > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.service-record p {
  margin: 6px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
.service-record small {
  color: var(--text-muted);
}
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.service-tabs button {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.service-tabs button.active {
  background: var(--green);
  color: white;
}
.service-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-stat {
  padding: 24px;
  border-radius: 14px;
  background: var(--bg-surface);
}
.service-stat strong {
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
}
.service-stat span {
  font-size: 13px;
  color: var(--text-muted);
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.service-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  min-width: 640px;
}
.service-table td,
.service-table th {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 14px 10px;
  vertical-align: top;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.service-table th {
  font-weight: 500;
  color: var(--text-muted);
}
.service-table button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.service-evidence {
  padding: 14px;
  border-left: 3px solid var(--green);
  background: var(--bg-surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.service-mail {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  font:
    13px/1.7 ui-monospace,
    monospace;
}
.service-mail a {
  color: var(--green);
}
.service-modal {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow: auto;
}
.service-modal::backdrop {
  background: color-mix(in srgb,var(--bg-base) 44%,transparent);
}
.service-modal h2 {
  margin: 0 0 20px;
}
.service-modal form {
  display: grid;
  gap: 16px;
}
.service-empty {
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.service-search {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.service-search input {
  min-width: 0;
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}
.avatar img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.live-avatar-control {
  margin: 18px auto;
  text-align: center;
}
.live-avatar-control label {
  cursor: pointer;
  display: inline-flex;
}
.live-avatar-control input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.profile-overview .service-links {
  justify-content: center;
  flex-direction: column;
  margin-top: 24px;
}
.live-person-photo > img,
.live-profile-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.match-entry {
  padding: 20px 24px;
  background: var(--bg-surface);
  border-radius: 18px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.match-entry h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.match-entry p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.matching-form {
  display: grid;
  gap: 18px;
}
.matching-form .field {
  margin: 0;
}
.matching-wait {
  padding: 22px;
  background: var(--bg-surface);
  border-radius: 14px;
  margin-bottom: 20px;
}
.matching-wait p {
  line-height: 1.7;
}
.match-pulse {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 12px;
  animation: matchPulse 1.5s infinite;
}
@keyframes matchPulse {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .match-pulse {
    animation: none;
  }
}
@media (max-width: 700px) {
  .service-layout {
    padding: 12px 16px 40px;
  }
  .service-header {
    padding: 20px 20px;
  }
  .service-panel {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-stats {
    grid-template-columns: 1fr;
  }
  .service-links {
    gap: 12px 18px;
    font-size: 12px;
  }
  .service-record {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .service-record .button {
    white-space: normal;
  }
  .match-entry {
    align-items: flex-start;
    flex-direction: column;
  }
  .service-actions {
    gap: 8px;
  }
  .service-actions .button {
    white-space: normal;
    font-size: 13px;
  }
  .service-card {
    padding: 20px;
  }
}

.call-top-actions {
  display: flex;
  gap: 8px;
}
.message-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  margin-left: 4px;
  color: var(--muted);
}
.message-flag .icon {
  width: 14px;
  height: 14px;
}
.message-flag:hover {
  color: var(--green);
}
.call-person-initials img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
