.esafe-animal-network,
.esafe-admin-wrap {
  --animal-blue: #1e5476;
  --animal-navy: #0b2e4f;
  --animal-red: #c40228;
  --animal-red-soft: #d8677d;
  --animal-border: #cfd9e2;
  --animal-surface: #ffffff;
  --animal-muted: #5a6a75;
}

.esafe-animal-network {
  box-sizing: border-box;
  color: var(--animal-navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 40px auto 0;
  max-width: 1120px;
  width: 100%;
}

.esafe-animal-network *,
.esafe-animal-network *::before,
.esafe-animal-network *::after {
  box-sizing: border-box;
}

body.esafe-animal-share-open {
  overflow: hidden;
}

.esafe-animal-network h1,
.esafe-animal-network h2,
.esafe-animal-network h3,
.esafe-animal-network p,
.esafe-animal-network ul,
.esafe-animal-network dl {
  margin-top: 0;
}

.esafe-animal-network h1,
.esafe-animal-network h2,
.esafe-animal-network h3 {
  color: var(--animal-navy);
  letter-spacing: 0;
}

.esafe-animal-network h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.esafe-animal-network h2 {
  font-size: 23px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.esafe-animal-network h3 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.esafe-animal-network-header {
  margin: 0 0 40px;
}

.esafe-animal-eyebrow,
.esafe-animal-resource-type {
  color: var(--animal-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.esafe-animal-lead,
.esafe-animal-section-heading > p {
  color: #42586a;
  margin-bottom: 0;
  max-width: none;
}

#esafe-animal-services-network [role="tablist"].esafe-harbor-tabs.esafe-animal-tabs {
  align-items: flex-end;
  border-bottom: 1px solid var(--animal-border);
  box-sizing: border-box;
  display: flex;
  flex-flow: row nowrap !important;
  gap: 18px !important;
  justify-content: flex-start !important;
  margin: 0 0 20px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 8px;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  width: 100%;
}

#esafe-animal-services-network [role="tablist"].esafe-harbor-tabs.esafe-animal-tabs.is-contained {
  justify-content: center !important;
}

#esafe-animal-services-network [role="tablist"].esafe-harbor-tabs.esafe-animal-tabs::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.esafe-harbor-tab {
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--animal-blue) !important;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  min-height: 44px;
  outline: 0;
  padding: 10px 1px 8px !important;
  text-decoration: none;
  white-space: nowrap;
}

.esafe-harbor-tab:hover,
.esafe-harbor-tab:focus-visible {
  background: transparent !important;
  color: var(--animal-red) !important;
}

.esafe-harbor-tab:focus-visible {
  outline: 2px solid var(--animal-red-soft);
  outline-offset: 2px;
}

.esafe-harbor-tab.is-active,
.esafe-harbor-tab[aria-selected="true"] {
  border-bottom-color: var(--animal-red) !important;
  color: var(--animal-red) !important;
}

.esafe-animal-tab-panel {
  margin: 0;
  min-width: 0;
  padding: 0;
}

.esafe-animal-tab-panel[hidden] {
  display: none !important;
}

.esafe-animal-section-heading {
  margin: 0 0 20px;
}

.esafe-animal-feature {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin: 0 0 32px;
}

.esafe-animal-feature img {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.esafe-animal-feature-copy p {
  margin-bottom: 18px;
}

.esafe-animal-feature-copy .esafe-animal-sharing-note {
  color: #1E5476;
  font-size: 13px;
  line-height: 1.6;
}

.esafe-animal-sharing-note strong {
  color: #C40228;
  font-weight: 700;
}

.esafe-animal-actions,
.esafe-animal-resource-actions,
.esafe-animal-admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#esafe-animal-services-network .esafe-lfp-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d2da;
  border-radius: 7px;
  box-shadow: none;
  color: var(--animal-blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 38px;
  padding: 10px 14px !important;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

#esafe-animal-services-network .esafe-lfp-btn:hover,
#esafe-animal-services-network .esafe-lfp-btn:focus-visible {
  background: #fff;
  border-color: var(--animal-red-soft);
  color: var(--animal-red);
  transform: translateY(-1px);
}

#esafe-animal-services-network .esafe-animal-share-trigger {
  flex: 0 0 auto;
}

#esafe-animal-services-network .esafe-animal-print-trigger {
  flex: 0 0 auto;
}

#esafe-animal-services-network .esafe-lfp-grid-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.esafe-animal-resource-card.is-shared-target,
.esafe-animal-hero-card.is-shared-target {
  border-color: rgba(196, 2, 40, 0.55);
  box-shadow: 0 0 0 3px rgba(216, 103, 125, 0.16), 0 0 8px rgba(224, 90, 90, 0.25);
}

.esafe-animal-share-modal[hidden] {
  display: none !important;
}

.esafe-animal-share-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2147483000;
}

.esafe-animal-share-backdrop {
  background: rgba(15, 35, 48, 0.62);
  inset: 0;
  position: absolute;
}

.esafe-animal-share-dialog {
  background: #fff;
  border: 1px solid #d4dee6;
  border-radius: 10px;
  box-shadow: 0 18px 52px rgba(11, 46, 79, 0.24);
  color: #0f2330;
  font-family: Inter, Arial, sans-serif;
  max-height: min(760px, calc(100vh - 40px));
  max-width: 600px;
  overflow: auto;
  position: relative;
  width: 100%;
}

.esafe-animal-share-dialog > header {
  align-items: center;
  border-bottom: 1px solid #d4dee6;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.esafe-animal-share-dialog h2 {
  color: #1e5476;
  font-family: "Source Sans 3", Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.esafe-animal-share-dialog .esafe-animal-eyebrow {
  margin: 0 0 4px;
}

.esafe-animal-share-close {
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #dadada;
  border-radius: 10px;
  color: #7a7a7a;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  padding: 0;
  transition: all 0.25s ease;
  width: 38px;
}

.esafe-animal-share-close:hover,
.esafe-animal-share-close:focus-visible {
  background: #fff;
  border-color: rgba(241, 193, 193, 0.5);
  box-shadow: 0 0 6px rgba(224, 90, 90, 0.5);
  color: #d8677d;
}

.esafe-animal-share-body {
  padding: 20px;
}

.esafe-animal-share-body > p:first-child {
  color: #42586a;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.esafe-animal-share-preview {
  align-items: center;
  background: #f5f8fb;
  border: 1px solid #d4dee6;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 16px;
  overflow: hidden;
  padding: 12px;
}

.esafe-animal-share-preview.has-image {
  grid-template-columns: 112px minmax(0, 1fr);
}

.esafe-animal-share-preview img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  display: block;
  height: 84px;
  object-fit: cover;
  width: 112px;
}

.esafe-animal-share-preview strong {
  color: #0b2e4f;
  display: block;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 5px;
}

.esafe-animal-share-preview p {
  color: #42586a;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  white-space: pre-line;
}

.esafe-animal-share-body > label {
  color: #7a7a7a;
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 6px;
}

.esafe-animal-share-body > input {
  background: #fff;
  border: 1px solid #d4dee6;
  border-radius: 10px;
  color: #5a6a75;
  font: 300 14px/1.55 Inter, Arial, sans-serif;
  min-height: 42px;
  padding: 8px 12px;
  width: 100%;
}

.esafe-animal-share-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
}

#esafe-animal-services-network .esafe-animal-share-grid .esafe-lfp-btn {
  background: #f5f5f5;
  border: 1px solid #dadada;
  border-radius: 10px;
  color: #7a7a7a;
  font: 300 14px/1 Inter, Arial, sans-serif;
  justify-content: flex-start;
  min-height: 40px;
  padding: 10px 14px !important;
  width: 100%;
}

#esafe-animal-services-network .esafe-animal-share-grid .esafe-lfp-btn:hover,
#esafe-animal-services-network .esafe-animal-share-grid .esafe-lfp-btn:focus-visible {
  background: #fff;
  border-color: rgba(241, 193, 193, 0.5);
  box-shadow: 0 0 6px rgba(224, 90, 90, 0.5);
  color: #d8677d;
}

.esafe-animal-share-email-panel[hidden] {
  display: none !important;
}

.esafe-animal-share-email-panel {
  border-top: 1px solid #d4dee6;
  margin: 18px 0 0;
  padding: 18px 0 0;
}

.esafe-animal-share-email-panel h3 {
  color: #1e5476;
  font: 700 17px/1.3 "Source Sans 3", Inter, Arial, sans-serif;
  margin: 0 0 6px;
}

.esafe-animal-share-email-panel > p {
  color: #42586a;
  font: 400 13px/1.45 Inter, Arial, sans-serif;
  margin: 0 0 14px;
}

.esafe-animal-share-email-panel label {
  color: #7a7a7a;
  display: block;
  font: 400 14px/1.45 Inter, Arial, sans-serif;
  margin: 12px 0 6px;
}

.esafe-animal-share-email-panel label span {
  color: #5a6a75;
  font-size: 12px;
}

.esafe-animal-share-email-panel input,
.esafe-animal-share-email-panel textarea {
  background: #fff;
  border: 1px solid #d4dee6;
  border-radius: 8px;
  box-sizing: border-box;
  color: #0f2330;
  font: 400 14px/1.5 Inter, Arial, sans-serif;
  padding: 10px 12px;
  width: 100%;
}

.esafe-animal-share-email-panel textarea {
  min-height: 84px;
  resize: vertical;
}

.esafe-animal-share-email-panel input:focus,
.esafe-animal-share-email-panel textarea:focus {
  border-color: #1e5476;
  box-shadow: 0 0 0 2px rgba(30, 84, 118, 0.14);
  outline: 0;
}

.esafe-animal-share-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

#esafe-animal-services-network .esafe-animal-share-email-actions .esafe-lfp-btn {
  min-height: 40px;
  padding: 10px 14px !important;
}

#esafe-animal-services-network .esafe-animal-share-email-actions .esafe-lfp-btn[disabled] {
  cursor: wait;
  opacity: 0.6;
}

.esafe-animal-share-help {
  color: #5a6a75;
  font-size: 13px;
  line-height: 1.45;
  margin: 14px 0 0;
}

.esafe-animal-prefill-notice {
  background: #f5f8fb;
  border-left: 3px solid #1e5476;
  color: #42586a;
  font: 400 13px/1.45 Inter, Arial, sans-serif;
  margin: 0 0 16px;
  padding: 10px 12px;
}

@media (max-width: 600px) {
  .esafe-animal-share-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .esafe-animal-share-dialog {
    max-height: calc(100vh - 20px);
  }

  .esafe-animal-share-dialog > header,
  .esafe-animal-share-body {
    padding: 16px;
  }

  #esafe-animal-services-network .esafe-animal-share-body > label {
    height: auto !important;
    line-height: 23px !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  #esafe-animal-services-network .esafe-animal-share-body > input {
    height: auto !important;
    line-height: 22px !important;
    min-height: 42px !important;
  }

  .esafe-animal-share-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #esafe-animal-services-network .esafe-animal-share-grid .esafe-lfp-btn {
    min-width: 0;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .esafe-animal-share-preview.has-image {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .esafe-animal-share-preview img {
    height: 60px;
    width: 80px;
  }

  .esafe-animal-share-email-actions .esafe-lfp-btn {
    flex: 1 1 130px;
  }
}

@media (max-width: 340px) {
  .esafe-animal-share-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.esafe-animal-icon {
  flex: 0 0 16px;
  height: 16px;
  width: 16px;
}

.esafe-animal-principles,
.esafe-animal-report-grid,
.esafe-animal-education-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 28px;
}

.esafe-animal-principles > div,
.esafe-animal-action-card,
.esafe-animal-education-grid > section,
.esafe-animal-resource-card,
.esafe-animal-hero-card {
  background: var(--animal-surface);
  border: 1px solid var(--animal-border);
  border-radius: 7px;
  padding: 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
  .esafe-animal-principles > div:hover,
  .esafe-animal-action-card:hover,
  .esafe-animal-education-grid > section:hover,
  .esafe-animal-resource-card:hover,
  .esafe-animal-hero-card:hover {
    border-color: rgba(196, 2, 40, 0.34);
    box-shadow: 0 8px 20px rgba(30, 84, 118, 0.1);
    transform: translateY(-2px);
  }
}

.esafe-animal-principles p,
.esafe-animal-action-card p,
.esafe-animal-education-grid li,
.esafe-animal-resource-card p,
.esafe-animal-resource-card dd,
.esafe-animal-hero-card p {
  color: #42586a;
  font-size: 14px;
}

.esafe-animal-action-card {
  display: flex;
  flex-direction: column;
}

.esafe-animal-action-card p {
  flex: 1 1 auto;
  margin-bottom: 18px;
}

.esafe-animal-limitations,
.esafe-animal-success {
  background: #f4f7fa;
  border-left: 3px solid var(--animal-blue);
  padding: 16px 18px;
}

.esafe-animal-limitations p,
.esafe-animal-success {
  margin-bottom: 0;
}

.esafe-animal-help-list {
  display: grid;
  gap: 0;
}

.esafe-animal-help-list section {
  border-bottom: 1px solid var(--animal-border);
  padding: 18px 0;
}

.esafe-animal-help-list section:first-child {
  padding-top: 0;
}

.esafe-animal-help-list p {
  margin-bottom: 0;
}

.esafe-animal-resource-controls {
  align-items: flex-end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 1.35fr) minmax(145px, 0.75fr) minmax(145px, 0.75fr) minmax(180px, 1fr) auto;
  margin: 0 0 12px;
}

.esafe-animal-resource-controls label,
.esafe-animal-select-row,
.esafe-animal-admin-test-form label {
  display: grid;
  gap: 6px;
}

.esafe-animal-resource-controls label > span,
.esafe-animal-select-row > span,
.esafe-animal-admin-test-form label > span {
  color: var(--animal-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4 !important;
}

.esafe-animal-resource-controls input,
.esafe-animal-resource-controls select,
.esafe-animal-select-row select,
.esafe-animal-admin-test-form input {
  background: #fff;
  border: 1px solid #aebdca;
  border-radius: 6px;
  color: var(--animal-navy);
  font: inherit;
  font-size: 14px;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.esafe-animal-resource-controls input:focus,
.esafe-animal-resource-controls select:focus,
.esafe-animal-select-row select:focus {
  border-color: var(--animal-blue);
  box-shadow: 0 0 0 2px rgba(30, 84, 118, 0.14);
  outline: 0;
}

.esafe-animal-resource-count {
  color: var(--animal-muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.esafe-animal-resource-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esafe-animal-resource-card {
  display: flex;
  flex-direction: column;
}

.esafe-animal-resource-card[hidden] {
  display: none !important;
}

.esafe-animal-resource-card h3 {
  margin-bottom: 4px;
}

.esafe-animal-resource-orgtype {
  font-weight: 600;
  margin-bottom: 10px;
}

.esafe-animal-resource-card dl {
  margin-bottom: 16px;
}

.esafe-animal-resource-card dl > div {
  display: grid;
  gap: 8px;
  grid-template-columns: 64px minmax(0, 1fr);
  margin-top: 6px;
}

.esafe-animal-resource-card dt {
  color: var(--animal-blue);
  font-size: 13px;
  font-weight: 700;
}

.esafe-animal-resource-card dd {
  margin: 0;
  min-width: 0;
}

.esafe-animal-resource-card dd a,
.esafe-animal-hero-card a {
  color: var(--animal-blue);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.esafe-animal-contact-label {
  color: var(--animal-muted);
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.esafe-animal-resource-card dd a:hover,
.esafe-animal-hero-card a:hover {
  color: var(--animal-red);
}

.esafe-animal-resource-actions {
  margin-top: auto;
}

.esafe-animal-no-results,
.esafe-animal-empty {
  background: #f4f7fa;
  border: 1px solid var(--animal-border);
  border-radius: 7px;
  margin: 16px 0 0;
  padding: 20px;
}

.esafe-animal-listing-controls {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.esafe-animal-listing-controls[hidden],
.esafe-animal-listing-controls .esafe-animal-see-more[hidden],
.esafe-animal-pagination[hidden] {
  display: none !important;
}

#esafe-animal-services-network .esafe-animal-see-more {
  align-self: flex-end;
  width: fit-content;
}

.esafe-animal-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-height: 30px;
}

#esafe-animal-services-network .esafe-animal-pagination .esafe-page-button {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d2da;
  border-radius: 6px;
  box-shadow: none;
  color: var(--animal-blue);
  display: inline-flex;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  justify-content: center;
  line-height: 1;
  min-height: 30px;
  min-width: 30px;
  padding: 6px 9px;
}

#esafe-animal-services-network .esafe-animal-pagination .esafe-page-button:hover,
#esafe-animal-services-network .esafe-animal-pagination .esafe-page-button:focus-visible {
  border-color: var(--animal-red-soft);
  color: var(--animal-red);
}

#esafe-animal-services-network .esafe-animal-pagination .esafe-page-button.is-current {
  background: var(--animal-red);
  border-color: var(--animal-red);
  color: #fff;
}

#esafe-animal-services-network .esafe-animal-pagination .esafe-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.esafe-pagination-ellipsis {
  color: var(--animal-muted);
  min-width: 16px;
  text-align: center;
}

.esafe-animal-pagination-status {
  color: var(--animal-muted);
  font-size: 13px;
  margin: 0;
  text-align: right;
  width: 100%;
}

.esafe-animal-heroes-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esafe-animal-hero-card {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 30px 30px 30px 20px;
  position: relative;
}

.esafe-animal-hero-content {
  min-width: 0;
}

.esafe-animal-hero-avatar img {
  border-radius: 50%;
  display: block;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.esafe-animal-hero-actions {
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 8px;
}

.esafe-animal-hero-actions .esafe-lfp-btn {
  flex: 1 1 0;
}

.esafe-animal-hero-card h3,
.esafe-animal-hero-card p {
  margin-bottom: 4px;
}

.esafe-animal-role-badge {
  background: #eef5f9;
  border-left: 3px solid var(--animal-red);
  color: var(--animal-navy) !important;
  display: inline-block;
  font-size: 12px !important;
  line-height: 1.4;
  margin: 2px 0 6px !important;
  padding: 5px 8px;
}

.esafe-animal-hero-location,
.esafe-animal-hero-organization {
  color: #42586a !important;
  font-size: 13px !important;
  line-height: 1.45;
  margin: 0 0 7px !important;
}

.esafe-animal-hero-location strong,
.esafe-animal-hero-organization strong {
  color: var(--animal-navy);
}

.esafe-animal-sample-label {
  color: var(--animal-red) !important;
  font-size: 11px !important;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 !important;
  position: absolute;
  right: 30px;
  top: 12px;
}

.esafe-animal-sample-controls {
  align-items: center;
  background: #f5f8fb;
  border: 1px solid var(--animal-border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 16px 0 20px;
  padding: 20px;
}

.esafe-animal-sample-controls h4,
.esafe-animal-sample-controls p {
  margin: 0 0 6px;
}

.esafe-animal-education-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esafe-animal-education-grid ul {
  margin: 0;
  padding-left: 20px;
}

.esafe-animal-education-grid li + li {
  margin-top: 6px;
}

.esafe-animal-preference-form {
  display: grid;
  gap: 18px;
}

.esafe-animal-preference-form fieldset {
  border: 1px solid var(--animal-border);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
}

.esafe-animal-preference-form legend {
  color: var(--animal-navy);
  font-size: 15px;
  font-weight: 700;
  padding: 0 6px;
}

.esafe-animal-check-row {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.esafe-animal-check-row input {
  flex: 0 0 auto;
  margin: 4px 0 0;
}

.esafe-faq-standard.esafe-animal-faq {
  background: #fff;
  border: 1px solid var(--animal-border);
  border-radius: 7px;
  margin: 40px 0 0;
  padding: 40px;
}

.esafe-faq-standard .esafe-faq-description {
  margin: 0 0 10px;
  max-width: none;
}

.esafe-faq-standard details {
  border: 0;
  margin: 0;
  padding: 7px 0;
}

.esafe-faq-standard summary {
  color: var(--animal-blue);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style-position: outside;
}

.esafe-faq-standard summary:hover,
.esafe-faq-standard summary:focus-visible {
  color: var(--animal-red);
}

.esafe-faq-standard details p {
  margin: 8px 0 0;
  padding-left: 20px;
}

.esafe-animal-admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.esafe-animal-admin-stats > div {
  background: #f4f7fa;
  border-left: 3px solid var(--animal-blue);
  display: grid;
  gap: 3px;
  padding: 14px;
}

.esafe-animal-admin-stats strong {
  color: var(--animal-navy);
  font-size: 22px;
}

.esafe-animal-admin-table-wrap {
  margin: 16px 0;
  max-width: 100%;
  overflow-x: auto;
}

.esafe-animal-admin-table th {
  background: var(--animal-blue);
  color: #fff;
  font-weight: 600;
}

.esafe-animal-admin-table th,
.esafe-animal-admin-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.esafe-animal-admin-actions form {
  margin: 0;
}

.esafe-animal-admin-settings,
.esafe-animal-admin-test-form {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.esafe-animal-admin-settings > label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.esafe-admin-wrap .esafe-lfp-tabs {
  border-bottom: 1px solid var(--animal-border);
  display: flex;
  flex-wrap: nowrap !important;
  gap: 20px;
  margin: 20px 0;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.esafe-admin-wrap .esafe-lfp-tabs::-webkit-scrollbar {
  display: none;
}

.esafe-admin-wrap .esafe-lfp-tabs .nav-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--animal-blue);
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 1px 8px;
}

.esafe-admin-wrap .esafe-lfp-tabs .nav-tab:hover,
.esafe-admin-wrap .esafe-lfp-tabs .nav-tab:focus {
  background: transparent;
  color: var(--animal-red);
}

.esafe-admin-wrap .esafe-lfp-tabs .nav-tab-active {
  border-bottom-color: var(--animal-red);
  color: var(--animal-red);
}

@media (max-width: 900px) {
  .esafe-animal-network {
    padding-left: 24px;
    padding-right: 24px;
  }

  .esafe-animal-feature,
  .esafe-animal-principles,
  .esafe-animal-report-grid {
    grid-template-columns: 1fr;
  }

  .esafe-animal-resource-controls {
    grid-template-columns: 1fr 1fr;
  }

  .esafe-animal-admin-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .esafe-animal-network {
    margin-top: 24px;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
  }

  .esafe-animal-network-header {
    margin-bottom: 28px;
  }

  .esafe-animal-network h1 {
    font-size: 24px;
  }

  #esafe-animal-services-network [role="tablist"].esafe-harbor-tabs.esafe-animal-tabs {
    gap: 18px !important;
    justify-content: flex-start !important;
  }

  .esafe-animal-feature {
    gap: 20px;
  }

  .esafe-animal-resource-controls,
  .esafe-animal-resource-grid,
  .esafe-animal-heroes-grid,
  .esafe-animal-education-grid,
  .esafe-animal-admin-stats {
    grid-template-columns: 1fr;
  }

  .esafe-animal-resource-controls {
    align-content: start;
    align-items: stretch;
    grid-auto-rows: max-content;
    height: auto !important;
  }

  .esafe-animal-resource-controls label {
    align-content: start;
    grid-template-rows: auto auto;
    height: auto !important;
  }

  .esafe-animal-resource-controls .esafe-lfp-btn {
    width: 100%;
  }

  .esafe-animal-principles > div,
  .esafe-animal-action-card,
  .esafe-animal-education-grid > section,
  .esafe-animal-resource-card {
    padding: 18px;
  }

  .esafe-animal-hero-card {
    padding: 30px 30px 30px 20px;
  }

  .esafe-faq-standard.esafe-animal-faq {
    margin-top: 32px;
    padding: 20px;
  }

  .esafe-animal-actions,
  .esafe-animal-resource-actions,
  .esafe-animal-hero-actions {
    align-items: stretch;
  }

  .esafe-animal-actions .esafe-lfp-btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .esafe-animal-resource-actions .esafe-lfp-btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 130px;
  }

  .esafe-animal-hero-card {
    gap: 12px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .esafe-animal-hero-avatar img {
    height: 72px;
    width: 72px;
  }

  .esafe-animal-hero-actions {
    gap: 8px;
  }

  #esafe-animal-services-network .esafe-animal-hero-actions .esafe-lfp-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .esafe-animal-preference-form fieldset {
    padding: 16px;
  }

  .esafe-animal-check-row {
    min-height: 38px;
  }

  .esafe-animal-check-row input {
    height: 18px;
    width: 18px;
  }

  .esafe-animal-sample-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .esafe-animal-sample-controls .esafe-animal-admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .esafe-animal-sample-controls .esafe-animal-admin-actions .esafe-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 340px) {
  .esafe-animal-actions .esafe-lfp-btn,
  .esafe-animal-resource-actions .esafe-lfp-btn {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #esafe-animal-services-network .esafe-lfp-btn {
    transition: none;
  }

  .esafe-animal-principles > div,
  .esafe-animal-action-card,
  .esafe-animal-education-grid > section,
  .esafe-animal-resource-card,
  .esafe-animal-hero-card {
    transition: none;
  }

  .esafe-animal-principles > div:hover,
  .esafe-animal-action-card:hover,
  .esafe-animal-education-grid > section:hover,
  .esafe-animal-resource-card:hover,
  .esafe-animal-hero-card:hover {
    transform: none;
  }
}
