/* Compact finder card and private owner tools. */
.compact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.compact-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--pale-green);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.compact-topline > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compact-topline .icon {
  width: 17px;
  height: 17px;
}
.compact-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 28px 16px;
}
.compact-identity > div {
  min-width: 0;
}
.compact-identity h1 {
  font-size: clamp(28px, 5vw, 40px);
  overflow-wrap: anywhere;
}
.compact-identity .muted {
  font-size: 15px;
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.compact-photo {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  position: relative;
  background: var(--pale-green);
}
.compact-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.compact-photo > span {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
}
.compact-photo .icon {
  width: 16px;
  height: 16px;
}
.compact-contact {
  padding: 0 28px 16px;
}
.compact-contact > p {
  margin: 0 0 10px;
  font-size: 15px;
}
.compact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.compact-actions .btn {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
}
.compact-actions .location-action {
  grid-column: 1 / -1;
  min-height: 44px;
  background: var(--canvas);
}
.compact-essentials {
  display: grid;
  gap: 8px;
  padding: 0 28px 16px;
}
.essential {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
}
.essential .icon {
  margin-top: 2px;
}
.essential h2 {
  font-size: 15px;
  margin: 0 0 2px;
}
.essential p {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.essential > div {
  min-width: 0;
}
.medical-essential {
  background: var(--danger-bg);
  color: #7b3026;
}
.calming-essential {
  background: #f0f4e9;
  color: #344b24;
}
.compact-disclosures {
  padding: 0 28px 16px;
  display: grid;
  gap: 8px;
}
.compact-disclosures details {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.compact-disclosures summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
.compact-disclosures summary::-webkit-details-marker {
  display: none;
}
.compact-disclosures summary > .icon:last-child {
  margin-inline-start: auto;
  width: 16px;
  transition: transform 0.18s ease;
}
.compact-disclosures details[open] summary > .icon:last-child {
  transform: rotate(45deg);
}
.compact-disclosures .details-content {
  margin: 0;
  padding: 4px 14px 16px;
}
.compact-facts {
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}
.compact-facts > div {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 12px;
}
.compact-facts dt {
  color: var(--muted);
  font-size: 14px;
}
.compact-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.help-actions {
  display: grid;
  gap: 8px;
}
.help-actions .btn {
  justify-content: flex-start;
}
.compact-order {
  border-top: 1px solid var(--line);
  background: #f7faef;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 14px;
}
.compact-order > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.compact-order.quiet-order {
  background: white;
  color: var(--muted);
}
.compact-lost {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--danger-bg);
  color: #7b3026;
  padding: 12px 24px;
}
.compact-lost > div {
  flex: 1;
  min-width: 0;
}
.compact-lost strong {
  font-size: 16px;
}
.compact-lost p {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.lightbox-photo {
  width: 100%;
  max-height: 75dvh;
  object-fit: contain;
  border-radius: 16px;
  background: var(--canvas);
}
.chip-tools {
  flex-wrap: wrap;
}
.activation-photo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.activation-photo > div:last-child {
  min-width: 0;
  flex: 1;
}
.activation-photo input[type="file"] {
  max-width: 100%;
  font-size: 13px;
  padding: 8px 0;
  border: 0;
}
.activation-photo .photo-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pale-green);
}
.activation-photo .photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activation-review {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}
.activation-review > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.review-photo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 64px;
  background: var(--pale-green);
}
.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activation-success {
  display: grid;
  gap: 16px;
}
.success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: var(--primary);
}
.success-mark .icon {
  width: 28px;
  height: 28px;
}
.test-checklist {
  padding-inline-start: 24px;
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.share-formats,
.share-buttons {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.share-formats .btn,
.share-buttons .btn {
  flex: 1;
  min-width: 0;
}
.social-preview {
  background: var(--pale-green);
  border-radius: 16px;
  min-height: 180px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.social-preview img {
  width: auto;
  max-height: 48dvh;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.social-preview + p {
  margin: 12px 0;
}
#activation-form details {
  margin: 0;
}
#activation-form details .form-grid {
  margin-top: 12px;
}
#activation-form details summary {
  min-height: 44px;
}
#activation-form .toggle-row {
  align-items: flex-start;
  line-height: 1.6;
}
#activation-form .toggle-row input {
  flex-shrink: 0;
  margin-top: 5px;
}
@media screen {
  .finder-page.compact-finder {
    max-width: 680px;
    padding: 24px 20px 12px;
    margin: 0 auto;
  }
  body:has(.compact-finder) {
    padding-bottom: 0;
  }
  .compact-finder footer.compact-footer {
    margin: 18px 4px 0;
    padding: 0;
    gap: 8px;
    align-items: center;
  }
  .compact-footer strong {
    display: none;
  }
  .compact-footer .actions {
    gap: 4px;
  }
  .compact-footer .btn {
    font-size: 12px;
    padding: 8px;
    min-height: 44px;
  }
  body:has(.compact-finder) .toast {
    bottom: 16px;
  }
  @media (max-width: 767px) {
    .finder-page.compact-finder {
      padding: 12px 12px 8px;
    }
    .compact-card {
      border-radius: 22px;
    }
    .compact-topline {
      padding: 10px 18px;
    }
    .compact-identity {
      padding: 18px 18px 14px;
      gap: 16px;
    }
    .compact-photo {
      width: 86px;
      height: 86px;
    }
    .compact-contact {
      padding: 0 18px 12px;
    }
    .compact-contact > p {
      font-size: 14px;
    }
    .compact-essentials {
      padding: 0 18px 12px;
    }
    .compact-disclosures {
      padding: 0 18px 12px;
    }
    .compact-order {
      padding: 8px 16px;
      font-size: 13px;
    }
    .compact-order > div {
      gap: 6px;
    }
    .compact-order .btn {
      padding: 8px;
    }
    .compact-lost {
      padding: 10px 18px;
    }
    .essential {
      padding: 10px 12px;
    }
    .essential p {
      font-size: 14px;
    }
  }
  @media (max-width: 359px) {
    .compact-identity {
      gap: 12px;
    }
    .compact-photo {
      width: 72px;
      height: 72px;
    }
    .compact-actions .btn {
      font-size: 14px;
      padding: 10px 6px;
    }
    .share-formats,
    .share-buttons {
      flex-wrap: wrap;
    }
    .share-buttons .btn {
      flex-basis: 100%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .compact-disclosures summary > .icon:last-child {
    transition: none;
  }
}
