:root {
  --pets-ink: #0a3043;
  --pets-muted: #59717d;
  --pets-green: #0b6b57;
  --pets-green-soft: #edf7f3;
  --pets-red: #b73e45;
  --pets-red-soft: #fff0ef;
  --pets-soft: #f5f1ea;
  --pets-border: #d9e4e8;
  --pets-shadow: 0 14px 36px rgba(7, 47, 66, .08);
}

.pets-page {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  min-width: 0;
  gap: 22px;
  padding-block: 28px 56px;
}

body.is-modal-open { overflow: hidden; }

.pets-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 28px;
  border: 1px solid #d8e6e5;
  border-radius: 24px;
  background: radial-gradient(circle at 92% 16%, rgba(255, 255, 255, .9) 0 7%, transparent 32%), linear-gradient(135deg, #f1f8f5 0%, #faf7f0 100%);
}

.pets-hero__copy { min-width: 0; }

.pets-eyebrow {
  margin: 0 0 6px;
  color: #357265;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pets-hero h1 {
  max-width: 740px;
  margin: 0;
  color: var(--pets-ink);
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.pets-hero__copy > p:not(.pets-eyebrow) {
  max-width: 650px;
  margin: 11px 0 0;
  color: var(--pets-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.pets-zone-picker {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 4px 6px 4px 14px;
  border: 1px solid rgba(11, 107, 87, .25);
  border-radius: 14px;
  background: #fff;
  color: #536c76;
  font-size: .82rem;
  font-weight: 750;
  box-shadow: 0 5px 16px rgba(9, 58, 73, .06);
}

.pets-zone-picker select {
  min-height: 44px;
  max-width: min(240px, 52vw);
  padding: 0 34px 0 10px;
  border: 0;
  border-radius: 10px;
  background-color: var(--pets-green-soft);
  color: var(--pets-ink);
  font: inherit;
  font-size: .94rem;
  font-weight: 850;
  cursor: pointer;
}

.pets-zone-help {
  display: block;
  margin: 7px 0 0 2px;
  color: #71848c;
  font-size: .76rem;
}

.pets-hero-actions {
  display: grid;
  min-width: 224px;
  gap: 9px;
}

.pets-hero-actions .btn { min-height: 46px; }

.pets-renewals {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e2d7bd;
  border-radius: 14px;
  background: #fffaf0;
  color: var(--pets-ink);
}

.pets-renewals[hidden],
.pet-detail[hidden],
.pet-form-overlay[hidden],
.pet-publish-success[hidden],
.pet-upload-progress[hidden] { display: none; }

/* Kept explicit because renewal visibility is a security-sensitive UI contract. */
.pets-renewals[hidden] { display: none; }

.pets-renewals__copy { min-width: 0; }

.pets-renewals__copy strong,
.pets-renewals__copy span {
  display: block;
  overflow-wrap: anywhere;
}

.pets-renewals__copy span {
  margin-top: 3px;
  color: #667983;
  font-size: .86rem;
}

.pets-renewals__actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.pets-filter-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pets-border);
}

.pets-filter-row p {
  margin: 0;
  color: var(--pets-muted);
  font-size: .9rem;
}

.pets-type-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #eaf0f2;
}

.pets-type-switch button {
  min-height: 44px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4f6874;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.pets-type-switch button.is-active {
  background: #fff;
  color: var(--pets-ink);
  box-shadow: 0 2px 7px rgba(9, 47, 65, .12);
}

.pets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pet-card,
.pets-empty {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pets-border);
  border-radius: 20px;
  background: #fff;
}

.pet-card {
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 8px 24px rgba(8, 51, 68, .055);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pet-card:hover,
.pet-card:focus-within {
  border-color: #b8d2d5;
  box-shadow: var(--pets-shadow);
  transform: translateY(-2px);
}

.pet-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e9f0f2;
}

.pet-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #e7f0ef, #f4efe6);
}

.pet-card:hover .pet-card__photo { transform: none; }

.pet-card__body {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-width: 0;
  gap: 8px;
  padding: 15px;
}

.pet-card__status {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--pets-red-soft);
  color: var(--pets-red);
  font-size: .71rem;
  font-weight: 880;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.pet-card__status[data-type="found"] {
  background: var(--pets-green-soft);
  color: #26725a;
}

.pet-card__title {
  width: fit-content;
  color: var(--pets-ink);
  text-decoration: none;
}

.pet-card__title h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.28rem;
  line-height: 1.15;
}

.pet-card__title:hover,
.pet-card__title:focus-visible { color: var(--pets-green); }

.pet-card__where,
.pet-card__when,
.pet-card__place {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--pets-muted);
  font-size: .88rem;
}

.pet-card__where {
  color: #365765;
  font-weight: 720;
}

.pet-card__place {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.4;
}

.pet-card__actions,
.pet-detail__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.pet-card__actions .btn { min-height: 44px; }

.pets-empty {
  grid-column: 1 / -1;
  padding: clamp(42px, 8vw, 76px) 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%);
}

.pets-empty__icon {
  display: inline-flex;
  min-height: 72px;
  align-items: center;
  gap: 3px;
  font-size: 2.75rem;
}

.pets-empty__icon i {
  color: #d16a69;
  font-size: 1.35rem;
  font-style: normal;
  transform: translateY(-10px);
}

.pets-empty h2 {
  max-width: 670px;
  margin: 12px auto 7px;
  color: var(--pets-ink);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.2;
}

.pets-empty p {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--pets-muted);
  line-height: 1.55;
}

.pets-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pets-empty--loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.pet-skeleton {
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--pets-border);
  border-radius: 20px;
  background: #fff;
}

.pet-skeleton::before,
.pet-skeleton::after {
  display: block;
  content: '';
  background: linear-gradient(90deg, #edf2f3 25%, #f8faf9 40%, #edf2f3 58%);
  background-size: 400% 100%;
  animation: petsSkeleton 1.35s ease-in-out infinite;
}

.pet-skeleton::before { height: 205px; }

.pet-skeleton::after {
  width: calc(100% - 30px);
  height: 86px;
  margin: 20px 15px;
  border-radius: 10px;
}

@keyframes petsSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.pet-detail {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--pets-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--pets-shadow);
}

.pet-detail__gallery,
.pet-detail__content { min-width: 0; }

.pet-detail__photo {
  display: block;
  width: 100%;
  max-height: 610px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #e7f0ef, #f4efe6);
}

.pet-detail__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  overflow-x: auto;
}

.pet-detail__thumb {
  width: 66px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #eef2f3;
  cursor: pointer;
}

.pet-detail__thumb[aria-pressed="true"] { border-color: var(--pets-green); }

.pet-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-detail__content {
  padding: 8px 4px 4px;
}

.pet-detail > .pet-detail__content:only-child { grid-column: 1 / -1; }

.pet-detail__content h1 {
  margin: 10px 0 4px;
  overflow-wrap: anywhere;
  color: var(--pets-ink);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.pet-detail__lead {
  margin: 0;
  color: #4f6975;
  font-size: 1rem;
  font-weight: 760;
}

.pet-detail__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0;
}

.pet-detail__fact {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f5f8f8;
  color: #486572;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.pet-detail__fact strong {
  display: block;
  margin-bottom: 3px;
  color: #6b7f87;
  font-size: .72rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.pet-detail__description {
  margin: 0 0 20px;
  color: #334f5c;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.pet-detail__actions .btn-accent,
.pet-detail__actions .btn-wa {
  grid-column: 1 / -1;
  min-height: 50px;
  font-size: .94rem;
}

.pet-detail__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 14px;
}

.pet-detail__utility .btn-link { min-height: 44px; }

.pet-resolved {
  display: grid;
  gap: 3px;
  margin: 15px 0;
  padding: 15px 16px;
  border: 1px solid #cce9de;
  border-radius: 14px;
  background: var(--pets-green-soft);
  color: #1e654f;
}

.pet-resolved strong { font-size: 1.08rem; }
.pet-resolved span { font-size: .86rem; }

.pet-action-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: #27654f;
  font-size: .86rem;
}

.pet-action-status[data-error="true"] { color: #8a3434; }

.pet-owner-tools {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pets-border);
}

.pet-owner-tools[hidden] { display: none; }

.pet-owner-tools h2,
.pet-owner-tools p { margin: 0; }

.pet-owner-tools h2 {
  color: var(--pets-ink);
  font-size: 1rem;
}

.pet-owner-tools p {
  color: var(--pets-muted);
  font-size: .85rem;
}

.pet-owner-tools__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pet-owner-tools__actions .btn { min-height: 44px; }
.pet-delete { color: #963d42; }

.pet-form-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(3, 31, 44, .72);
}

.pet-form-dialog {
  width: min(790px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.pet-form-head {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--pets-border);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}

.pet-form-head span {
  color: #4d7469;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pet-form-head h2,
.pet-form-head p { margin: 0; }

.pet-form-head h2 {
  margin-top: 2px;
  color: var(--pets-ink);
  font-size: 1.35rem;
}

.pet-form-head p {
  margin-top: 3px;
  color: #71848c;
  font-size: .76rem;
}

.pet-form-close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: #edf2f4;
  color: var(--pets-ink);
  font-size: 1.5rem;
  cursor: pointer;
}

#petForm {
  display: grid;
  gap: 13px;
  padding: 18px 22px 24px;
}

.pet-form-section {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid #e0e9eb;
  border-radius: 16px;
  background: #fff;
}

.pet-form-section--photo { background: #fbfdfc; }

.pet-form-section__head {
  display: flex;
  min-width: 0;
  gap: 11px;
  align-items: start;
}

.pet-form-section__head > span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--pets-green-soft);
  color: var(--pets-green);
  font-size: .78rem;
  font-weight: 900;
}

.pet-form-section__head h3,
.pet-form-section__head p { margin: 0; }

.pet-form-section__head h3 {
  color: var(--pets-ink);
  font-size: 1rem;
}

.pet-form-section__head p {
  margin-top: 2px;
  color: #6b7f88;
  font-size: .8rem;
  line-height: 1.4;
}

.pet-form-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pet-form-type label {
  position: relative;
  cursor: pointer;
}

.pet-form-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pet-form-type label span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid #cddce2;
  border-radius: 12px;
  background: #fff;
  color: #486572;
  font-size: .88rem;
  font-weight: 780;
  text-align: center;
}

.pet-form-type input:checked + span {
  border-color: var(--pets-green);
  background: var(--pets-green-soft);
  color: var(--pets-green);
  box-shadow: 0 0 0 1px var(--pets-green);
}

.pet-form-type input:focus-visible + span {
  outline: 3px solid rgba(11, 107, 87, .25);
  outline-offset: 2px;
}

.pet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.pet-form-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #395867;
  font-size: .84rem;
  font-weight: 750;
}

.pet-form-grid small {
  color: #75878e;
  font-weight: 500;
}

.pet-form-grid .pet-field-help {
  display: block;
  line-height: 1.35;
}

.pet-form-grid input,
.pet-form-grid select,
.pet-form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c7d8de;
  border-radius: 11px;
  background: #fff;
  color: var(--pets-ink);
  font: inherit;
}

.pet-form-grid input::placeholder,
.pet-form-grid textarea::placeholder { color: #8b9aa0; }

.pet-form-grid input:disabled {
  background: #edf2f4;
  color: #6e8088;
}

.pet-form-grid textarea {
  min-height: 106px;
  resize: vertical;
}

.pet-form-wide { grid-column: 1 / -1; }

.pet-file {
  display: grid;
  min-height: 138px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border: 1.5px dashed #9dbfc1;
  border-radius: 14px;
  background: #f4faf7;
  color: var(--pets-green);
  text-align: center;
  cursor: pointer;
}

.pet-file:hover,
.pet-file:focus-within {
  border-color: var(--pets-green);
  background: #eef8f3;
}

.pet-file__icon { font-size: 1.55rem; }
.pet-file strong { font-size: .92rem; }

.pet-file small {
  max-width: 430px;
  color: #607983;
  font-size: .75rem;
  font-weight: 500;
}

.pet-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pet-photo-summary {
  color: #607783;
  font-size: .8rem;
}

.pet-photo-summary[data-error="true"] { color: #963d42; }

.pet-photo-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pet-photo-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pets-border);
  border-radius: 12px;
  background: #eef3f4;
}

.pet-photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pet-photo-preview button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(7, 42, 56, .82);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.pet-photo-preview__status {
  display: block;
  padding: 6px 8px;
  overflow: hidden;
  color: #526c77;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-photo-preview[data-state="done"]::after {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--pets-green);
  content: '✓';
  font-weight: 900;
}

.pet-consent {
  display: flex;
  gap: 10px;
  align-items: start;
  color: #405e6c;
  font-size: .84rem;
  line-height: 1.48;
}

.pet-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--pets-green);
}

.pet-upload-progress {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--pets-green-soft);
}

.pet-upload-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #365d54;
  font-size: .79rem;
}

.pet-upload-progress progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  accent-color: var(--pets-green);
}

.pet-form-status {
  min-height: 1.3em;
  margin: 0;
  color: #8a3434;
  font-size: .86rem;
}

.pet-form-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0 -22px -24px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--pets-border);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}

.pet-form-actions .btn { min-height: 46px; }

.pet-form-actions .btn:disabled {
  cursor: wait;
  opacity: .65;
}

.pet-publish-success {
  display: grid;
  justify-items: center;
  padding: clamp(34px, 8vw, 64px) 22px;
  text-align: center;
}

.pet-publish-success__icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--pets-red-soft);
  color: #ce5a5f;
  font-size: 2rem;
}

.pet-publish-success h2 {
  margin: 0;
  color: var(--pets-ink);
  font-size: clamp(1.8rem, 5vw, 2.45rem);
  letter-spacing: -.035em;
}

.pet-publish-success > p:not(.pets-eyebrow):not(.pet-action-status) {
  max-width: 440px;
  margin: 8px auto 22px;
  color: var(--pets-muted);
  line-height: 1.5;
}

.pet-publish-success__actions {
  display: grid;
  width: min(410px, 100%);
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.pet-publish-success__actions .btn { min-height: 48px; }

.pet-publish-success__actions .btn-wa,
.pet-publish-success__actions .btn-link { grid-column: 1 / -1; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pets-page button:focus-visible,
.pets-page a:focus-visible,
.pets-page select:focus-visible,
.pets-page input:focus-visible,
.pets-page textarea:focus-visible,
.pet-form-overlay button:focus-visible,
.pet-form-overlay input:focus-visible,
.pet-form-overlay select:focus-visible,
.pet-form-overlay textarea:focus-visible,
.pet-file:focus-within {
  outline: 3px solid rgba(11, 107, 87, .25);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .pets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pets-empty--loading { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pets-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pets-hero-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .pets-page {
    width: min(100% - 24px, 640px);
    gap: 17px;
    padding-block: 16px 36px;
  }

  .pets-zones { display: none; }

  .pets-hero {
    gap: 20px;
    padding: 21px 18px;
    border-radius: 20px;
  }

  .pets-hero h1 { font-size: clamp(2rem, 9.6vw, 2.75rem); }

  .pets-zone-picker {
    display: flex;
    width: 100%;
  }

  .pets-zone-picker select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    font-size: 1rem;
  }

  .pet-form-grid input,
  .pet-form-grid select,
  .pet-form-grid textarea { font-size: 1rem; }

  .pets-hero-actions { grid-template-columns: 1fr; }

  .pets-renewals {
    align-items: stretch;
    flex-direction: column;
  }

  .pets-renewals__actions,
  .pets-renewals__actions .btn { width: 100%; }

  .pets-filter-row {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .pets-type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .pets-filter-row p { padding-inline: 3px; }

  .pets-grid,
  .pets-empty--loading,
  .pet-detail,
  .pet-form-grid { grid-template-columns: 1fr; }

  .pet-card__photo { aspect-ratio: 16 / 9; }
  .pet-card__body { padding: 14px; }

  .pet-detail {
    min-width: 0;
    gap: 17px;
    padding: 12px;
    border-radius: 20px;
  }

  .pet-detail__photo {
    max-height: 62vh;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .pet-detail__content { padding: 2px 3px 5px; }
  .pet-detail__meta { grid-template-columns: 1fr; }

  .pet-detail__actions .btn,
  .pet-owner-tools__actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .pet-form-wide { grid-column: auto; }

  .pet-form-overlay {
    align-items: end;
    padding: 0;
  }

  .pet-form-dialog {
    width: 100%;
    max-height: 96dvh;
    border-radius: 22px 22px 0 0;
  }

  #petForm,
  .pet-form-head { padding-inline: 14px; }

  .pet-form-head { padding-top: 14px; }
  .pet-form-head p { display: none; }

  #petForm {
    gap: 10px;
    padding-block: 12px 20px;
  }

  .pet-form-section { padding: 14px; }

  .pet-form-type,
  .pet-photo-previews { grid-template-columns: 1fr 1fr; }

  .pet-form-actions {
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 -14px -20px;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .pet-form-actions .btn-accent { grid-row: 1; }

  .pet-publish-success {
    min-height: min(620px, 90dvh);
    align-content: center;
  }

  .pet-publish-success__actions { grid-template-columns: 1fr; }

  .pet-publish-success__actions .btn-wa,
  .pet-publish-success__actions .btn-link { grid-column: auto; }
}

@media (max-width: 390px) {
  .pets-page { width: calc(100% - 20px); }
  .pets-hero { padding-inline: 16px; }

  .pets-zone-picker {
    align-items: stretch;
    flex-direction: column;
    padding: 8px;
  }

  .pets-zone-picker > span { padding: 2px 4px 0; }

  .pet-card__actions,
  .pet-detail__actions,
  .pet-form-type,
  .pet-photo-previews { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pet-card,
  .pet-card__photo,
  .pet-skeleton::before,
  .pet-skeleton::after {
    animation: none;
    transition: none;
  }
}
