:root {
  --ink: #172338;
  --muted: #687387;
  --cream: #fffaf3;
  --paper: #ffffff;
  --line: #e7e9ee;
  --coral: #ff5f57;
  --coral-dark: #e84742;
  --yellow: #ffc84a;
  --teal: #18a999;
  --navy: #13233d;
  --lavender: #f3f1ff;
  --shadow: 0 18px 55px rgba(24, 35, 56, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 15px/1.6 Manrope, system-ui, sans-serif;
}
a { color: var(--coral-dark); text-decoration: none; font-weight: 700; }
a:hover { color: var(--coral); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0 0 .55em; font-family: Nunito, Manrope, sans-serif; line-height: 1.08; }
h1 { font-size: clamp(2.1rem, 5vw, 4.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -.025em; }
p { margin: 0 0 1.25rem; }
small { color: var(--muted); }
code { padding: .15rem .35rem; border-radius: 5px; background: #edf0f5; }

.site-header {
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(23, 35, 56, .08);
  background: rgba(255, 250, 243, .93);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: clamp(1rem, 2vw, 2rem); color: var(--ink); font: 800 1.25rem Nunito, sans-serif; }
.brand:hover { color: var(--ink); }
.brand strong { color: var(--coral); font-weight: 900; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 48% 52% 48% 52%;
  background: var(--coral);
  transform: rotate(-5deg);
  box-shadow: 0 7px 18px rgba(255, 95, 87, .28);
}
.main-nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.6rem); }
.main-nav > a:not(.button) { color: var(--ink); }
.main-nav > .button:not(.nav-donate-button) { justify-content: center; text-align: center; }
.nav-quick-links { display: none; align-items: center; gap: .45rem; margin-left: auto; }
.nav-quick-links > a,
.nav-quick-links .nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .52rem .72rem;
  border: 1px solid rgba(129, 0, 255, .12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 20px rgba(58,0,115,.06);
  font-size: .88rem;
  line-height: 1.1;
  text-align: center;
}
.nav-quick-links .nav-dropdown-menu { left: auto; right: 0; transform: none; }
.nav-donate-button { justify-content: center; text-align: center; background: #fff; color: var(--brand-purple); box-shadow: 0 8px 22px rgba(58,0,115,.08); }
.nav-donate-button:hover { color: var(--brand-blue); background: #fff; }
.nav-divider {
  display: block;
  width: 1px;
  height: 1.7rem;
  background: rgba(23, 35, 56, .14);
}
.nav-dropdown { position: relative; color: var(--ink); font-weight: 800; }
.nav-dropdown summary { display: flex; align-items: center; gap: .35rem; list-style: none; cursor: pointer; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "▾"; font-size: .72rem; color: var(--muted); transform: translateY(.05rem); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  z-index: 90;
  display: grid;
  min-width: 270px;
  padding: .55rem;
  border: 1px solid rgba(23, 35, 56, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}
.nav-dropdown:not([open]) .nav-dropdown-menu { display: none; }
.nav-dropdown-menu a { padding: .65rem .75rem; border-radius: 10px; color: var(--ink); }
.nav-dropdown-menu a:hover { background: #fff1ef; color: var(--coral-dark); }
.nav-toggle {
  display: none;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 35, 56, .08);
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 2.5px 0;
  border-radius: 2px;
  background: var(--ink);
}
.site-header.nav-collapsed .nav-toggle { display: grid; }
.site-header.nav-collapsed .nav-quick-links { display: flex; flex: 0 0 auto; margin-right: .45rem; }
.site-header.nav-collapsed .brand { width: clamp(120px, 24vw, 190px); min-width: 120px; margin-right: .5rem; }
.site-header.nav-collapsed .main-nav {
  position: absolute;
  top: calc(100% + .55rem);
  right: clamp(1rem, 5vw, 5rem);
  display: none;
  align-items: stretch;
  width: min(330px, calc(100vw - 2rem));
  padding: .85rem;
  border: 1px solid rgba(23, 35, 56, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
}
.site-header.nav-collapsed.nav-open .main-nav { display: grid; gap: .4rem; }
.site-header.nav-collapsed .main-nav > a,
.site-header.nav-collapsed .main-nav .nav-dropdown summary,
.site-header.nav-collapsed .main-nav .nav-dropdown-menu a,
.site-header.nav-collapsed .main-nav .link-button,
.site-header.nav-collapsed .main-nav .button {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: .65rem .75rem;
  border-radius: 10px;
  text-align: left;
}
.site-header.nav-collapsed .main-nav > a:not(.button):hover,
.site-header.nav-collapsed .main-nav .nav-dropdown summary:hover,
.site-header.nav-collapsed .main-nav .link-button:hover { background: #fff1ef; }
.site-header.nav-collapsed .main-nav .nav-donate-button { justify-content: flex-start; text-align: left; }
.site-header.nav-collapsed .main-nav > .button:not(.nav-donate-button) { justify-content: flex-start; text-align: left; }
.site-header.nav-collapsed .main-nav .nav-divider {
  width: 100%;
  height: 1px;
  margin: .25rem 0;
}
.site-header.nav-collapsed .main-nav .nav-dropdown { width: 100%; }
.site-header.nav-collapsed .main-nav .nav-dropdown-menu {
  position: static;
  min-width: 0;
  padding: .2rem 0 .25rem .75rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.site-header.nav-collapsed .main-nav .inline-form { display: block; width: 100%; }
.site-header.nav-collapsed .language-switch { justify-content: flex-start; padding: .55rem .75rem .2rem; }
.inline-form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; color: var(--coral-dark); background: none; font-weight: 800; }
.language-switch { display: flex; gap: .3rem; color: #a0a7b2; font-size: .78rem; }
.language-switch a { color: #a0a7b2; }
.language-switch a.active { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.45rem;
  border: 2px solid var(--coral);
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 9px 25px rgba(255, 95, 87, .22);
  font-weight: 800;
  transition: .18s ease;
}
.button:hover { color: #fff; background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-1px); }
.button:disabled, .button.disabled {
  cursor: not-allowed;
  color: #788192;
  border-color: #d9dee7;
  background: #edf0f5;
  box-shadow: none;
  transform: none;
  opacity: 1;
}
.button:disabled:hover, .button.disabled:hover {
  color: #788192;
  border-color: #d9dee7;
  background: #edf0f5;
  transform: none;
}
.button-small { min-height: 39px; padding: .45rem 1rem; }
.button-block { width: 100%; }
.button-ghost { color: var(--ink); border-color: var(--line); background: #fff; box-shadow: none; }
.button-ghost:hover { color: var(--coral-dark); border-color: var(--coral); background: #fff; }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--coral-dark);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
[data-ajax-results][aria-busy="true"] { opacity: .62; pointer-events: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 5vw;
  align-items: center;
  min-height: calc(92vh - 78px);
  padding: clamp(3rem, 4vw, 3.8rem) clamp(1.2rem, 8vw, 8.5rem) 4.8vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 12%, rgba(255, 200, 74, .2), transparent 21rem),
    radial-gradient(circle at 90% 80%, rgba(24, 169, 153, .12), transparent 26rem);
}
.hero-copy { position: relative; z-index: 2; max-width: 700px; }
.hero-copy h1 { max-width: 680px; }
.hero-copy p { max-width: 610px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.moderation-disabled-action { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .35rem; max-width: 320px; }
.moderation-disabled-action small { color: #8a6100; font-size: .76rem; font-weight: 800; line-height: 1.35; text-align: right; }
.dashboard-hero .moderation-disabled-action small { color: #ffe08a; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.2rem; color: #536073; font-size: .82rem; font-weight: 700; }
.hero-art { position: relative; min-height: 540px; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 1% 4% 5%;
  border-radius: 48% 52% 42% 58%;
  background: var(--yellow);
  transform: rotate(4deg);
}
.sun { position: absolute; top: 3%; right: 3%; width: 95px; height: 95px; border-radius: 50%; background: #ffe196; }
.pet-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 230px;
  padding: 1.7rem;
  border: 6px solid #fff;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}
.pet-card strong { margin-top: .6rem; font: 900 1.35rem Nunito, sans-serif; }
.pet-card small { color: var(--muted); }
.pet-emoji { font-size: 7rem; line-height: 1; }
.dog-card { left: 3%; top: 17%; transform: rotate(-8deg); }
.cat-card { right: 2%; bottom: 5%; transform: rotate(7deg); }
.heart { position: absolute; z-index: 3; color: var(--coral); font-size: 2.2rem; }
.heart-one { top: 20%; right: 8%; transform: rotate(13deg); }
.heart-two { left: 43%; bottom: 8%; color: var(--teal); }
.mission-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem clamp(1.2rem, 8vw, 8.5rem);
  color: white;
  background: var(--navy);
}
.mission-section p { max-width: 650px; margin: 0; color: #cbd3df; font-size: 1.08rem; }
.mission-section .eyebrow { color: var(--yellow); }

.auth-page, .soft-page { min-height: 100vh; background: #f7f5f0; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(330px, .85fr) minmax(430px, 1.15fr);
  max-width: 1120px;
  min-height: 650px;
  margin: 4rem auto;
  overflow: hidden;
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  color: white;
  background: var(--navy);
}
.auth-aside::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 290px;
  height: 290px;
  border-radius: 45%;
  background: var(--teal);
  opacity: .85;
  transform: rotate(22deg);
}
.register-aside::after { background: var(--yellow); }
.auth-aside h1 { position: relative; z-index: 1; font-size: clamp(2.2rem, 4vw, 3.65rem); }
.auth-aside .eyebrow { color: var(--yellow); }
.auth-paws { position: relative; z-index: 1; margin-top: 3rem; font-size: 4.5rem; }
.form-card { align-self: center; width: min(100%, 550px); padding: clamp(2rem, 6vw, 5rem); }
.form-card h2 { font-size: 2.4rem; }
form { margin: 1.5rem 0; }
label, .field-title {
  display: block;
  margin-bottom: 1rem;
  color: #354156;
  font-size: .86rem;
  font-weight: 800;
}
input, select, textarea {
  width: 100%;
  min-height: 49px;
  margin-top: .4rem;
  padding: .72rem .9rem;
  border: 1px solid #dce0e7;
  border-radius: 11px;
  color: var(--ink);
  outline: none;
  background: #fff;
  transition: .15s ease;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24, 169, 153, .13); }
input:disabled, input:read-only { color: #596477; background: #f5f6f8; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 3rem; }
.password-field button { position: absolute; right: .6rem; top: 50%; border: 0; color: #89919e; background: none; transform: translateY(-42%); }
.form-links { display: flex; justify-content: flex-end; margin: -.2rem 0 1.2rem; font-size: .85rem; }
.form-bottom { margin: 1.4rem 0 0; text-align: center; color: var(--muted); }
.auth-account-switches { margin-bottom: 1.8rem; }
.auth-account-switches .form-bottom { margin-top: 0; }
.auth-vet-access {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(53, 65, 86, .14);
  text-align: center;
}
.auth-vet-access p { margin: 0 0 .7rem; color: var(--muted); font-size: .92rem; }
.field-error { display: block; margin-top: .35rem; color: #d73939; font-weight: 700; }
.client-field-error {
  display: block;
  margin-top: .45rem;
  padding: .55rem .7rem;
  border-left: 4px solid #d73939;
  border-radius: 8px;
  color: #9d2929;
  background: #ffe5e3;
  font-size: .86rem;
  font-weight: 800;
}

.flash {
  position: relative;
  z-index: 40;
  width: min(92%, 780px);
  margin: .65rem auto 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(20, 35, 56, .08);
  font-weight: 700;
  transition: opacity .24s ease, transform .24s ease;
}
.flash.is-hiding { opacity: 0; transform: translateY(-8px); }
.flash-success { color: #116b5c; background: #dff8f2; }
.flash-error { color: #9d2929; background: #ffe5e3; }

.moderation-report-button,
.dashboard-tabs a.moderation-tab {
  border-color: #d59a00 !important;
  background: #fff1ad !important;
  color: #6f4d00 !important;
}
.moderation-report-button .button-icon { stroke: currentColor; }
.moderation-owner-banner { border: 2px solid #d59a00; background: #fff8d9; }
.moderation-owner-banner > strong,
.moderation-review-banner > strong { display: block; margin-bottom: .65rem; color: #6f4d00; font-size: 1.08rem; }
.moderation-review-banner { border: 2px solid #8a62bf; background: #f5eaff; }
.status-pill.moderation { background: #fff1ad; color: #6f4d00; }
.status-pill.moderation.review { background: #efe5ff; color: #4e3575; }
.moderation-warning-icon { color: #8a6100; background: #fff1ad; }
.adoption-dialog-icon.danger { color: #a52222; background: #ffe5e3; }
.moderation-audit-dialog { max-height: 92vh; overflow: auto; }
.moderation-user-message { max-width: 760px; margin-inline: auto; }
.audit-shell > .flash {
  margin: -.25rem auto .85rem;
}
.center-card {
  width: min(92%, 520px);
  margin: 6rem auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}
.center-card h1 { font-size: clamp(1.6rem, 4vw, 2.35rem); word-break: break-word; }
.center-card label { text-align: left; }
.round-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  color: white;
  background: var(--coral);
  font-size: 1.8rem;
}
.code-input { text-align: center; font-size: 1.8rem; font-weight: 900; letter-spacing: .45em; }
.dev-note { display: block; margin-top: 1.4rem; }

.app-page { background: #f5f6f8; }
.page-heading, .dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}
.page-heading h1, .dashboard-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  border-radius: 999px;
  color: #29665d;
  background: #dff5ef;
  font-size: .74rem;
  font-weight: 800;
}
.status-pill.warning { color: #8a5c0a; background: #fff0c5; }
.profile-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}
.profile-nav { position: sticky; top: calc(84px + 1rem); align-self: start; display: grid; gap: .45rem; padding: 1rem; border-radius: 16px; background: white; }
.profile-nav a { padding: .8rem 1rem; border-radius: 10px; color: #667085; font-size: .86rem; }
.profile-nav a:hover, .profile-nav a.active { color: var(--ink); background: #fff1ef; }
.profile-content { min-width: 0; }
.profile-content > form { margin: 0; }
.panel { margin-bottom: 1.4rem; padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 18px; background: white; }
.panel-heading, .panel-heading > div { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.panel-heading h2 { margin: 0; font-size: 1.35rem; }
.section-number { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: white; background: var(--navy); font-size: .72rem; font-weight: 900; }
.required-note { color: var(--coral-dark); font-size: .72rem; font-weight: 800; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.address-line { grid-template-columns: 2fr .7fr .7fr; }
.privacy-note { display: flex; gap: .8rem; margin-top: 1.25rem; padding: 1rem; border-left: 3px solid var(--teal); border-radius: 8px; color: #48625e; background: #eefaf7; font-size: .82rem; }
.verified-field, .prefixed-input { display: flex; align-items: center; position: relative; }
.verified-field input { padding-right: 7rem; }
.verified-field span { position: absolute; right: .8rem; color: #148676; font-size: .75rem; }
.text-action { margin: -1rem 0 1.5rem; padding: 0; border: 0; color: var(--coral-dark); background: none; font-weight: 800; }
.phone-block { margin: .8rem 0 1.2rem; }
.phone-row { display: grid; grid-template-columns: 130px minmax(160px, 1fr) minmax(250px, 1.3fr); gap: .7rem; align-items: center; }
.phone-row select, .phone-row input { margin: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: .8rem; }
.radio-group label { display: flex; align-items: center; gap: .35rem; margin: 0; white-space: nowrap; }
input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  inline-size: 1rem;
  block-size: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  min-inline-size: 1rem;
  min-block-size: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  padding: 0;
  border: 0;
  box-shadow: none;
  flex: 0 0 1rem;
  line-height: 1;
  vertical-align: middle;
  background: initial;
  accent-color: var(--brand-purple);
  transition: none;
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 2px solid rgba(129,0,255,.25);
  outline-offset: 2px;
}
.radio-group input { width: 1rem; height: 1rem; inline-size: 1rem; block-size: 1rem; min-height: 1rem; margin: 0; }
.prefixed-input { margin-top: .4rem; border: 1px solid #dce0e7; border-radius: 11px; overflow: hidden; }
.prefixed-input span { padding-left: .9rem; color: #7b8492; font-weight: 600; }
.prefixed-input input { margin: 0; border: 0; }
.security-row, .save-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.security-row p { margin: .25rem 0 0; }
.save-bar {
  position: sticky;
  z-index: 5;
  bottom: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.save-bar span { color: var(--muted); font-size: .8rem; }
.autocomplete-wrap { position: relative; }
.suggestions {
  position: absolute;
  z-index: 15;
  top: calc(100% - 1rem);
  right: 0;
  left: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}
.suggestions button { display: block; width: 100%; padding: .65rem .85rem; border: 0; border-bottom: 1px solid #f0f1f3; background: white; text-align: left; }
.suggestions button:hover { background: #fff3f1; }

dialog { width: min(92%, 480px); padding: 2rem; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 30px 100px rgba(15, 25, 45, .3); }
dialog::backdrop { background: rgba(15, 25, 45, .55); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: .8rem; right: 1rem; border: 0; color: #788292; background: none; font-size: 0; line-height: 1; }
.dialog-close::before { content: "\00d7"; font-size: 1.7rem; }

.dashboard-hero { align-items: center; min-height: 0; padding-top: 1.65rem; padding-bottom: 1.25rem; color: white; background: var(--navy); max-width: none; padding-inline: max(2rem, calc((100vw - 1260px) / 2)); }
.dashboard-hero h1 { margin-bottom: 0; }
.dashboard-hero p { margin: 0; color: #c8d0dc; }
.dashboard-section { max-width: 1260px; margin: 0 auto; padding: 3rem 2rem 6rem; }
.dashboard-section.pet-dashboard { padding-top: 2rem; padding-bottom: 2.5rem; }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.empty-state { padding: 5rem 2rem; border: 2px dashed #d8dce3; border-radius: 24px; background: white; text-align: center; }
.empty-pets { margin-bottom: 1.3rem; font-size: 4.5rem; }
.empty-state h3 { font-size: 1.35rem; }
.empty-state p { color: var(--muted); }

.site-footer { display: grid; grid-template-columns: minmax(0,1fr) minmax(12rem,1.05fr) minmax(0,1fr); gap: clamp(.8rem, 2vw, 2rem); align-items: center; padding: 2rem clamp(1rem, 5vw, 5rem); color: #aeb6c3; background: #0e192b; font-size: .78rem; }
.site-footer a { color: inherit; font-weight: 800; }
.site-footer a:hover { color: white; }
.footer-legal-link { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .45rem; justify-self: center; text-align: center; }
.footer-brand, .footer-credits, .footer-tagline { min-width: 0; }
.footer-credits { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .45rem; text-align: center; line-height: 1.55; }
.footer-credits > span { max-width: 100%; }
.footer-tagline { text-align: right; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3.5rem; }
  .hero-art { min-height: 470px; }
  .mission-section { grid-template-columns: 1fr; gap: 1rem; }
  .home-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -.4rem; }
  .contact-shell { grid-template-columns: 1fr; margin-top: 1rem; }
  .auth-shell { grid-template-columns: 1fr; margin: 1.5rem auto; width: min(94%, 620px); }
  .auth-aside { min-height: 290px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-nav { position: static; grid-template-columns: repeat(5, 1fr); }
  .profile-nav a { text-align: center; }
  .phone-row { grid-template-columns: 120px 1fr; }
  .phone-row .radio-group { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .site-header { min-height: 68px; padding: 0 1rem; }
  .brand span:last-child { display: none; }
  .site-header.nav-collapsed .main-nav { right: 1rem; }
  .hero { padding: 3rem 1.2rem 3rem; }
  .hero-art { min-height: 390px; }
  .home-counters { grid-template-columns: 1fr; padding-inline: 1.2rem; }
  .contact-hero { padding-inline: 1.2rem; }
  .contact-shell { width: min(100% - 1.2rem, 620px); }
  .pet-card { width: 175px; padding: 1rem; border-radius: 24px; }
  .pet-emoji { font-size: 5rem; }
  .mission-section { padding: 4rem 1.2rem; }
  .auth-aside { padding: 2rem; }
  .form-card { padding: 2rem 1.3rem; }
  .page-heading, .dashboard-hero { align-items: flex-start; flex-direction: column; padding: 2rem 1rem 1.2rem; }
  .dashboard-hero { gap: .75rem; padding-top: 2.35rem; padding-bottom: 1.05rem; }
  .dashboard-hero h1 { margin-top: .2rem; }
  .profile-layout { padding: 0 1rem; }
  .profile-nav { display: flex; overflow-x: auto; }
  .profile-nav a { min-width: max-content; }
  .form-grid.two, .form-grid.three, .address-line { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 1fr; }
  .phone-row .radio-group { grid-column: auto; }
  .security-row, .save-bar { align-items: stretch; flex-direction: column; }
  .save-bar .button { width: 100%; }
  .moderation-disabled-action { align-items: stretch; max-width: none; }
  .moderation-disabled-action small { text-align: left; }
  .site-footer { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-tagline { text-align: center; }
}

/* Pet publications and follow-up */
.pet-form { max-width: 1120px; margin: 0 auto 6rem; padding: 0 2rem; }
.pet-form-heading { align-items: center; }
.pet-form-tabs {
  display: flex;
  gap: .6rem;
  margin: 0 0 1rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.pet-form-tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}
.pet-form-tabs button.active { color: white; background: var(--brand-gradient); }
.pet-location-list { display: grid; gap: .85rem; margin: 1rem 0; }
.pet-location-row {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(150px, auto) minmax(220px, 1fr) 42px;
  gap: .75rem;
  align-items: end;
}
.pet-location-row label { margin: 0; }
.pet-all-state { min-height: 44px; align-items: center; margin-bottom: 0; }
.pet-location-remove {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #9f2d23;
  font-size: 1.25rem;
  cursor: pointer;
}
.radio-card-grid { display: grid; gap: .8rem; margin: 1rem 0; }
.radio-card-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.radio-card-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.radio-card-grid label { margin: 0; }
.radio-card-grid > label > span { display: block; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fbf8ff; }
.radio-card-grid input { position: absolute; opacity: 0; }
.radio-card-grid input:checked + span { color: var(--brand-purple); border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(129,0,255,.1); }
.pet-species-emoji { margin-right: .35rem; }
@media (min-width: 651px) {
  .pet-species > label { display: flex; min-height: 178px; }
  .pet-species > label > .pet-species-choice {
    position: relative;
    display: grid;
    flex: 1;
    place-items: center;
    padding: .8rem 1rem 3rem;
    text-align: center;
  }
  .pet-species-emoji { margin-right: 0; font-size: clamp(4.5rem, 8vw, 7rem); line-height: .9; }
  .pet-species-label {
    position: absolute;
    right: .8rem;
    bottom: .85rem;
    left: .8rem;
    line-height: 1.2;
  }
}
.radio-card-nested { display: grid; gap: .45rem; min-height: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fbf8ff; }
.radio-card-nested strong { font-size: .88rem; }
.radio-card-nested label { display: flex; align-items: center; gap: .4rem; }
.radio-card-nested input { position: static; opacity: 1; inline-size: 1rem; block-size: 1rem; min-height: 1rem; margin: 0; accent-color: var(--brand-purple); }
.pet-image-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.pet-image-slot { position: relative; aspect-ratio: 1; overflow: hidden; border: 2px dashed #cdb8df; border-radius: 18px; background: #f7f0fc; }
.pet-image-slot > input[type=file] { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pet-image-slot img { width: 100%; height: 100%; object-fit: cover; }
.image-remove { position: absolute; z-index: 4; top: .5rem; right: .5rem; width: 32px; height: 32px; border: 0; border-radius: 50%; color: white; background: rgba(20,0,35,.75); }
.primary-star { position: absolute; z-index: 4; bottom: .55rem; left: .55rem; margin: 0; }
.primary-star input { position: absolute; opacity: 0; }
.primary-star span { color: white; font-size: 2rem; filter: drop-shadow(0 2px 5px #000); cursor: pointer; }
.primary-star input:checked + span { color: #ffd500; }
.option-group { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin: 1.2rem 0; }
.option-group strong { width: 100%; }
.option-group > .privacy-note { width: 100%; margin: -.45rem 0 -.1rem; }
.option-group label { display: flex; align-items: center; gap: .35rem; margin: 0; }
.option-group input { inline-size: 1rem; block-size: 1rem; min-height: 1rem; margin: 0; flex: 0 0 1rem; }
.description-options { display: grid; gap: .7rem; margin: 1.5rem 0; }
.description-options > strong { margin-bottom: .2rem; }
.description-options > .privacy-note { margin: -.45rem 0 -.15rem; }
.description-options label { display: flex; gap: .7rem; margin: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fcfaff; }
.description-options input { inline-size: 1rem; block-size: 1rem; min-height: 1rem; margin: .2rem 0 0; flex: 0 0 1rem; }
.check-with-select { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.check-with-select label { display: flex; align-items: center; gap: .5rem; margin: 0; }
.check-with-select input[type=checkbox] { inline-size: 1rem; block-size: 1rem; min-height: 1rem; margin: 0; flex: 0 0 1rem; }
.check-with-select select { margin: 0; }
.check-with-select > input:not([type=checkbox]) { grid-column: 1/-1; margin-top: 0; }
.vaccine-list .dog-only,
.vaccine-list .cat-only {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .2rem 1.5rem;
}
.medical-test-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .2rem 1.5rem; }
.medical-test-grid .check-with-select { grid-template-columns: minmax(0,1fr) minmax(130px,160px); }
.contract-options { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.contract-upload { margin-top: .75rem; }
.contract-file-label { display: grid; gap: .4rem; cursor: pointer; }
.contract-file-control { display: block; width: 100%; min-height: 48px; padding: .78rem .95rem; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.contract-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.contract-template-button { margin-top: .1rem; margin-bottom: .5rem; }
.personality-detail { display: grid; gap: .8rem; }
.personality-detail div { padding: .9rem 1rem; border-left: 4px solid var(--brand-purple); border-radius: 0 12px 12px 0; background: #faf6ff; }
.personality-detail dt { margin-bottom: .3rem; font-weight: 900; }
.personality-detail dd { margin: 0; color: var(--muted); line-height: 1.55; }
.food-warning { margin-top: 1.2rem; padding: 1rem; border-radius: 12px; color: #604400; background: #fff4ce; font-size: .78rem; }
.health-tip { display: inline-flex; align-items: center; margin: .25rem 0 .8rem; padding: .65rem .8rem; border-left: 4px solid #ffc84a; border-radius: 10px; color: #604400; background: #fff4ce; font-size: .82rem; font-weight: 800; line-height: 1.4; }
.pet-auto-size { display: grid; gap: .55rem; margin-top: .9rem; }
.pet-auto-size-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.pet-auto-size-options span { padding: .45rem .7rem; border: 1px solid #ded4e9; border-radius: 999px; color: var(--muted); background: #fff; font-size: .86rem; font-weight: 800; }
.pet-auto-size-options span.active { border-color: rgba(129,0,255,.24); color: var(--brand-purple); background: #f5eaff; }
.pet-location-warning { margin: .8rem 0 1rem; padding: 1rem; border-left: 4px solid #ffc84a; border-radius: 12px; color: #604400; background: #fff4ce; font-size: .88rem; font-weight: 800; line-height: 1.45; }
.publication-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 1rem; }
.pet-search-panel { margin: 1rem 0; padding: 1rem; }
.dashboard-search-grid {
  display: grid;
  grid-template-columns: minmax(170px, .75fr) minmax(210px, 1fr) minmax(300px, 1.25fr) 42px;
  gap: .7rem;
  align-items: start;
}
.dashboard-search-grid > label { margin: 0; }
.dashboard-search-grid > .option-group { margin: 0; }
.dashboard-search-grid .request-pet-filter { align-self: start; margin: 0; }
.dashboard-search-grid .request-pet-filter select { width: 100%; }
.available-pet-search-panel .dashboard-search-grid > label {
  grid-column: 1;
  grid-row: 1;
}
.available-pet-search-panel .dashboard-location-filter {
  grid-column: 2 / span 3;
  grid-row: 1;
}
.available-filter-actions {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  margin-top: .45rem;
}
.available-pet-search-panel .dashboard-add-location {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
  width: auto;
  margin: .45rem 0 0;
}
.received-request-search-panel .dashboard-search-grid {
  grid-template-columns: max-content minmax(170px, 240px) max-content minmax(0, 1fr);
  align-items: start;
}
.received-status-filter {
  align-self: start;
}
.received-status-filter strong,
.request-pet-filter strong {
  display: block;
  min-height: 1.2rem;
  margin-bottom: .35rem;
}
.received-request-search-panel .request-pet-filter select {
  margin-top: .2rem;
}
.received-status-filter > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: .25rem .8rem;
}
.received-status-filter label {
  min-height: 24px;
}
.card-actions.received-filter-actions {
  align-items: center;
  align-self: start;
  justify-self: start;
  margin: 3rem 0 0 1.25rem;
}
.dashboard-localities { display: grid; align-content: start; gap: .45rem; }
.dashboard-location-filter {
  grid-column: span 3;
  display: grid;
  align-self: start;
  gap: 0;
}
.dashboard-location-rows { display: grid; gap: .55rem; }
.dashboard-location-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(300px, 1.25fr) 42px;
  gap: .7rem;
  align-items: start;
}
.dashboard-location-row label { margin: 0; }
.dashboard-add-location {
  justify-self: start;
  width: min(100%, calc((100% - .7rem - 42px) * .555));
  margin-top: .45rem;
  margin-left: calc((100% - .7rem - 42px) * .445 + .7rem);
}
.dashboard-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(300px, 1.25fr) max-content;
  align-items: center;
  gap: .7rem;
  margin-top: .45rem;
}
.dashboard-filter-toolbar .dashboard-add-location {
  position: relative;
  left: -1.1rem;
  grid-column: 2;
  justify-self: start;
  width: auto;
  margin: 0;
}
.dashboard-filter-toolbar .dashboard-filter-actions {
  grid-column: 3;
  justify-self: end;
  align-items: center;
  margin: 0 0 0 auto;
}
.dashboard-filter-toolbar .button {
  min-height: 39px;
}
.dashboard-locality-group {
  display: block;
}
.dashboard-locality-heading { display: block; }
.dashboard-locality-control {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-top: .35rem;
  overflow: hidden;
  border: 1px solid #dce0e7;
  border-radius: 11px;
  background: #fff;
}
.dashboard-all-state {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  align-self: stretch;
  min-height: 46px;
  margin: 0;
  padding: 0 .75rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: #fafbff;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}
.dashboard-all-state input {
  width: auto;
  min-height: auto;
  margin: 0;
  padding: 0;
}
.dashboard-locality-control input[data-dashboard-filter-locality] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.dashboard-locality-control input[data-dashboard-filter-locality]:focus {
  box-shadow: none;
}
.dashboard-location-remove {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #9f2d23;
  font-size: 1.25rem;
}
.dashboard-localities strong { font-size: .82rem; }
.dashboard-localities > div { display: flex; flex-wrap: wrap; gap: .45rem .8rem; max-height: 8rem; overflow: auto; }
.result-count { max-width: 1120px; margin: .8rem 0 1rem; }
.dashboard-filter-error { margin: .2rem 0 .6rem; }
.dashboard-sort-control {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: .2rem 0 .9rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 900;
}
.dashboard-sort-control-mine { margin-top: .75rem; }
.dashboard-sort-control select {
  width: auto;
  min-width: 150px;
  margin: 0;
}
.dashboard-pagination { margin: .35rem 0 1.2rem; }
.dashboard-sort-control + .dashboard-pagination { margin-top: .15rem; }
.result-count + .dashboard-pagination { margin-top: -.25rem; margin-bottom: 1.25rem; }
.pet-browse-grid + .dashboard-pagination,
.publication-grid + .dashboard-pagination { margin-top: 1.25rem; margin-bottom: .4rem; }
.pet-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.pet-browse-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  box-shadow: 0 10px 26px rgba(55,0,110,.06);
}
.pet-browse-card:hover { transform: translateY(-1px); }
.pet-browse-image {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  background: #f5eaff;
  font-size: 3rem;
}
.pet-browse-image img { width: 100%; height: 100%; object-fit: cover; }
.pet-browse-info { display: grid; gap: .25rem; padding: .8rem .9rem 1rem; font-size: .88rem; }
.pet-browse-info span { color: var(--muted); }
.home-pet-showcase { max-width: 1320px; margin: 0 auto; padding: 2.5rem 2rem 1rem; }
.home-pet-showcase h2 { margin-bottom: .35rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.home-counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: -1.2rem auto 0;
  padding: 0 2rem 1rem;
  position: relative;
  z-index: 3;
}
.home-counter-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon value" "icon label";
  align-items: center;
  gap: .15rem .8rem;
  min-height: 104px;
  padding: 1rem;
  border: 1px solid rgba(129,0,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(55,0,110,.08);
}
.home-counter-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  padding: .55rem;
  border-radius: 12px;
  color: #5a00c2;
  background: #f5eaff;
}
.home-counter-card strong {
  grid-area: value;
  color: #21172c;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1;
}
.home-counter-card span {
  grid-area: label;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
}
@media (max-width: 900px) {
  .home-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -.4rem; }
  .home-counter-card { min-width: 0; }
}
@media (max-width: 650px) {
  .home-counters { grid-template-columns: 1fr; padding-inline: 1.2rem; }
}
.home-pet-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0 .5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}
.home-pet-rail::-webkit-scrollbar { display: none; }
.home-pet-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.home-pet-rail .pet-browse-card { scroll-snap-align: start; user-select: none; }
.home-pet-rail .pet-browse-card img { pointer-events: none; }
.home-apps {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.35rem 2rem 2.6rem;
}
.home-apps-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 1rem 3rem;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 1rem;
}
.home-apps-heading h2 {
  margin: .25rem 0 0;
  color: #17121d;
  font-size: 2rem;
}
.home-apps-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.home-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}
.home-app-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 1rem;
  align-items: center;
  min-height: 194px;
  padding: 1.3rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(42, 31, 58, .11);
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-app-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 38%;
  opacity: .7;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.08) 18px 20px);
}
.home-app-card:hover { transform: translateY(-2px); box-shadow: 0 24px 54px rgba(42, 31, 58, .16); }
.home-app-card:focus-visible { outline: 3px solid rgba(129,0,255,.32); outline-offset: 3px; }
.home-app-card-android {
  color: #fff;
  border-color: rgba(255,255,255,.08);
  background: #161b22;
}
.home-app-card-ios {
  color: #0d2948;
  border-color: #bfdef7;
  background: #eaf6ff;
}
.home-app-card-ios::after { background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(10,132,255,.08) 18px 20px); }
.home-app-card-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-width: 0;
}
.home-app-store-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.15);
}
.home-app-store-icon { display: block; width: 44px; height: 44px; }
.home-app-kicker {
  display: block;
  margin-bottom: .2rem;
  color: #aeb8c5;
  font-size: .76rem;
  font-weight: 800;
}
.home-app-card-ios .home-app-kicker { color: #3573a7; }
.home-app-card h3 {
  margin: 0 0 .35rem;
  color: inherit;
  font-size: 1.28rem;
}
.home-app-card p {
  margin: 0 0 .65rem;
  color: #c9d1d9;
  font-size: .88rem;
}
.home-app-card-ios p { color: #476984; }
.home-app-store-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: inherit;
  font-size: .84rem;
}
.home-app-store-link span { font-size: 1rem; }
.home-app-qr {
  position: relative;
  z-index: 1;
  width: 108px;
  margin: 0;
  padding: .48rem;
  border-radius: 10px;
  color: #344052;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.home-app-qr img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.home-app-qr figcaption { margin-top: .25rem; font-size: .64rem; font-weight: 800; text-align: center; }
@media (max-width: 900px) {
  .home-apps-heading { grid-template-columns: 1fr; align-items: start; }
  .home-apps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .home-apps { padding: 1.1rem 1.2rem 2.2rem; }
  .home-apps-heading h2 { font-size: 1.75rem; }
  .home-app-card { grid-template-columns: minmax(0, 1fr) 82px; gap: .75rem; min-height: 0; padding: 1rem; }
  .home-app-card-main { grid-template-columns: 48px minmax(0, 1fr); gap: .7rem; }
  .home-app-store-mark { width: 48px; height: 48px; border-radius: 11px; }
  .home-app-store-icon { width: 34px; height: 34px; }
  .home-app-card h3 { font-size: 1.12rem; }
  .home-app-card p { font-size: .8rem; }
  .home-app-qr { width: 82px; padding: .35rem; }
  .home-app-qr figcaption { font-size: .58rem; }
}
.home-features {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 5vw, 4.6rem) clamp(1.2rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 200, 74, .22), transparent 18rem),
    radial-gradient(circle at 92% 20%, rgba(24, 169, 153, .16), transparent 24rem),
    linear-gradient(180deg, #fffaf3 0%, #ffffff 42%, #f8f1ff 100%);
}
.home-features::before {
  content: "";
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  top: 3rem;
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .055;
  transform: rotate(10deg);
}
.home-features-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 1.4rem;
}
.home-features-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
  color: #17121d;
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.home-features-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}
.home-features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}
.home-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 1.35rem;
  border: 1px solid rgba(129, 0, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 45px rgba(55,0,110,.07);
}
.home-feature-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -46px;
  width: 130px;
  height: 130px;
  border-radius: 44% 56% 46% 54%;
  background: rgba(255, 95, 87, .08);
  transform: rotate(12deg);
}
.home-feature-card:nth-child(2n)::after { background: rgba(24, 169, 153, .1); }
.home-feature-card:nth-child(3n)::after { background: rgba(255, 200, 74, .18); }
.home-feature-card:nth-child(4) {
  grid-column: span 2;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 38%),
    linear-gradient(145deg, #17121d 0%, #5b00bd 58%, #0055ff 135%);
  box-shadow: 0 24px 60px rgba(58,0,115,.18);
}
.home-feature-card:nth-child(4)::after {
  width: 180px;
  height: 180px;
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .12;
  filter: brightness(0) invert(1);
}
.home-feature-card h3 {
  position: relative;
  z-index: 1;
  margin: 1rem 0 .55rem;
  font-size: 1.24rem;
  letter-spacing: 0;
}
.home-feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #5d6879;
  font-size: .95rem;
}
.home-feature-card:nth-child(4) p { color: #efe6ff; }
.home-feature-icon-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #5a00c2;
  background: #f5eaff;
}
.home-feature-card:nth-child(3n) .home-feature-icon-wrap { color: #008276; background: #e9fbf8; }
.home-feature-card:nth-child(3n + 1) .home-feature-icon-wrap { color: var(--coral-dark); background: #fff1ef; }
.home-feature-card:nth-child(10) {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.82)),
    radial-gradient(circle at 100% 0%, rgba(24, 169, 153, .18), transparent 12rem);
}
.home-feature-card:nth-child(4) .home-feature-icon-wrap {
  color: #fff;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.home-feature-icon { width: 25px; height: 25px; }
.home-feature-logo-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 245px;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(129, 0, 255, .12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.28), transparent 8rem),
    linear-gradient(145deg, #160026 0%, #5b00bd 58%, #0055ff 130%);
  box-shadow: 0 24px 60px rgba(58,0,115,.16);
}
.home-feature-logo-card::before {
  content: "";
  position: absolute;
  inset: auto -36px -46px auto;
  width: 150px;
  height: 150px;
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .14;
  filter: brightness(0) invert(1);
  transform: rotate(14deg);
}
.home-feature-logo-card img {
  position: relative;
  z-index: 1;
  width: min(172px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(16,0,39,.32);
}
@media (max-width: 980px) {
  .home-features-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .home-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-feature-card:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 650px) {
  .home-features { padding-inline: 1.2rem; }
  .home-features-grid { grid-template-columns: 1fr; }
  .home-feature-card { min-height: 0; }
  .home-feature-logo-card { min-height: 210px; }
}
.publication-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 35px rgba(55,0,110,.07); }
.publication-image { display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: #f5eaff; font-size: 4rem; }
.publication-image img { width: 100%; height: 100%; object-fit: cover; }
.publication-body { padding: 1.2rem; }
.publication-body h3 { margin-top: .7rem; }
.publication-body p { margin-bottom: .55rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.card-actions form { margin: 0; }
.button-icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.button .button-icon { margin-right: .35rem; }
.dashboard-tabs-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.dashboard-tabs { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: .5rem; min-width: 0; overflow-x: visible; padding-bottom: .4rem; }
.dashboard-tabs a { position: relative; min-width: max-content; padding: .65rem 1rem; border-radius: 999px; color: var(--muted); background: white; }
.dashboard-tabs a.active { color: white; background: var(--brand-gradient); }
.dashboard-country-form { flex: 0 0 min(260px,100%); margin: 0 0 -.55rem; transform: translateY(-1.45rem); }
.dashboard-country-form label { display: grid; gap: .25rem; margin: 0; font-size: .82rem; font-weight: 800; color: var(--muted); }
.dashboard-country-form select { margin: 0; min-height: 42px; }
.dashboard-tabs-action {
  flex: 0 0 auto;
  align-self: flex-start;
  margin: 0;
}
.notification-tab-dot { position: absolute; top: .35rem; right: .45rem; width: .55rem; height: .55rem; border-radius: 999px; background: var(--brand-purple); box-shadow: 0 0 0 4px rgba(129,0,255,.12); }
.dashboard-tabs a.active .notification-tab-dot { background: white; box-shadow: 0 0 0 4px rgba(255,255,255,.24); }
.notification-panel { display: grid; gap: 1rem; }
.notification-toolbar { display: flex; justify-content: flex-end; margin: 0; }
.notification-list { display: grid; gap: .7rem; }
.notification-list article { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.notification-list article.unread { border-color: rgba(129,0,255,.35); box-shadow: 0 10px 28px rgba(129,0,255,.08); }
.notification-list article.pinned { background: #fbf8ff; }
.notification-list article > div:first-child { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.notification-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 999px; background: var(--brand-purple); box-shadow: 0 0 0 4px rgba(129,0,255,.12); }
.request-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 1rem; }
.request-card { display: block; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 28px rgba(55,0,110,.06); }
.request-card > div:not(.request-card-image) { padding: 1rem; }
.request-card-image { display: grid; place-items: center; width: 100%; aspect-ratio: 1.25; overflow: hidden; border-radius: 0; background: #f5eaff; font-size: 2.7rem; }
.request-card-image img { width: 100%; height: 100%; object-fit: cover; }
.request-card h3 { margin: .55rem 0 .25rem; }
.request-card p { margin-bottom: .35rem; }
@media (max-width: 1080px) {
  .dashboard-tabs-bar { flex-wrap: wrap; }
  .dashboard-tabs { flex-basis: 100%; }
  .dashboard-country-form { flex-basis: min(260px,100%); margin: 0; transform: none; }
}
.pet-detail-heading { padding-bottom: .5rem; }
.pet-detail-heading .eyebrow { margin-bottom: .35rem; }
.pet-detail-heading-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.pet-share-action { display: inline-flex; flex-direction: column; align-items: center; gap: .18rem; }
.pet-detail-bottom-actions { align-items: flex-start; }
.pet-request-action { display: grid; gap: .45rem; }
.pet-request-disabled-reason { color: var(--muted); line-height: 1.35; max-width: 28rem; }
.pet-detail { display: grid; grid-template-columns: minmax(360px,.9fr) minmax(0,1.1fr); gap: 2.25rem; max-width: 1200px; margin: 1rem auto 4rem; padding: 0 2rem; }
.sent-request-pet-detail { margin: 0 auto 1.5rem; padding: 0; }
.sent-request-bottom-actions { max-width: 1200px; margin: 0 auto 2rem; justify-content: flex-end; }
.pet-detail-gallery { display: grid; gap: .8rem; align-content: start; }
.pet-main-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: min(400px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f5eaff;
  cursor: zoom-in;
}
.pet-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-zoom { position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.46); opacity: .72; }
.pet-thumbs { display: flex; gap: .65rem; }
.pet-thumbs button { width: 76px; aspect-ratio: 1; overflow: hidden; padding: 0; border: 2px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.pet-thumbs button.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(138, 72, 202, .16); }
.pet-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.image-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, auto) 44px;
  grid-template-areas: "prev image next";
  align-items: center;
  gap: .75rem;
  width: fit-content;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}
.image-dialog:not([open]) { display: none; }
.image-dialog img { grid-area: image; display: block; max-width: min(800px, calc(100vw - 8rem)); max-height: calc(100vh - 4rem); width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.image-dialog-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 12px 28px rgba(55,0,110,.18); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; }
.image-dialog-prev { grid-area: prev; }
.image-dialog-next { grid-area: next; }
.detail-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 2rem; }
.detail-facts span { padding: .45rem .7rem; border-radius: 999px; background: #f1e4ff; font-size: .78rem; font-weight: 800; }
.pet-detail-basic { margin: .25rem 0 .65rem; color: var(--muted); font-weight: 800; }
.pet-detail-basic p { margin: .15rem 0; }
.dog-only [data-add-secondary-weight],
.secondary-pet-block [data-remove-secondary-weight] { margin-top: .65rem; }
.compact-list { margin: 0; padding-left: 1.1rem; }
.compact-list li + li { margin-top: .25rem; }
.pet-story-block { margin-top: 1.3rem; }
.pet-story-block h2 { margin-bottom: .5rem; }
.pet-story-mobile { display: none; }
.pet-followup-page .page-heading { padding-top: 1.8rem; padding-bottom: 1.25rem; }
.followup-heading-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.followup-layout, .followup-form { display: grid; gap: 1.4rem; max-width: 1250px; margin: 0 auto; }
.followup-layout { margin-bottom: 6rem; padding: 0 2rem; }
.followup-form { width: 100%; }
.followup-adopter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.followup-address-field { grid-column: 1 / -1; }
.followup-address-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.followup-address-grid label { margin: 0; }
.followup-visit-list { display: grid; gap: .8rem; }
.followup-visit-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,1fr) auto; gap: .8rem; align-items: start; }
.followup-visit-row > label:not(.choice-card) { display: flex; flex-direction: column; }
.followup-visit-row input[type="datetime-local"] { flex: 1; height: 48px; min-height: 48px; }
.followup-visit-row .choice-card { align-items: center; align-self: start; box-sizing: border-box; height: 48px; min-height: 48px; margin: calc(1.4em + .55rem) 0 0; padding-block: 0; }
.followup-visit-row .choice-card input { margin-top: 0; }
.followup-visit-remove { align-self: end; margin-bottom: .1rem; }
.visit-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.visit-card { scroll-margin-top: 6rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #faf7fc; }
.visit-card-title { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.status-pill.visit-evaluated { color: #075d47; background: #dff8ef; }
.readonly-grid { display: grid; gap: .75rem; }
.readonly-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.readonly-field { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.readonly-field.full { grid-column: 1 / -1; }
.readonly-field span { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.readonly-field strong { display: block; color: var(--ink); font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.archive-pagination { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.archive-pagination span { color: var(--muted); font-size: .9rem; font-weight: 900; }
.archive-pagination .disabled { opacity: .45; pointer-events: none; }
.followup-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.followup-actions form { margin: 0; }
.adoption-action-dialog { width: min(92%, 560px); padding: 2rem; overflow: visible; text-align: left; border-top: 6px solid var(--brand-purple); }
.adoption-action-dialog h2 { margin: .4rem 0 .7rem; padding-right: 2rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.adoption-action-dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
.dialog-kicker { display: inline-flex; margin-bottom: .7rem; color: var(--brand-purple); font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.adoption-dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .75rem; border-radius: 50%; color: white; background: var(--brand-gradient); font-weight: 900; box-shadow: 0 14px 30px rgba(129,0,255,.18); }
.adoption-dialog-note { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid rgba(129,0,255,.14); border-radius: 14px; color: #38254b; background: #fbf8ff; font-size: .9rem; font-weight: 800; line-height: 1.45; }
.contract-request-panel { border: 1px solid rgba(20,134,118,.18); background: #f2fbf8; }
.contract-request-panel .card-actions { align-items: flex-start; }
.contract-request-panel .card-actions > .button { align-self: flex-start; }
.contract-generate-form { display: inline-flex; flex-direction: column; align-items: center; gap: .25rem; margin: 0; }
.contract-generate-form small { color: var(--muted); font-size: .76rem; font-weight: 800; line-height: 1.2; }
.is-contract-generating { overflow: hidden; }
.contract-generating-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1.5rem; background: rgba(33,18,48,.62); backdrop-filter: blur(5px); }
.contract-generating-box { display: grid; justify-items: center; gap: 1rem; width: min(92vw, 380px); padding: 2rem; border: 1px solid rgba(255,255,255,.48); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 26px 80px rgba(26,10,44,.28); text-align: center; }
.contract-generating-box img { width: 96px; height: 96px; object-fit: contain; animation: contract-breathe 1.45s ease-in-out infinite; }
.contract-generating-box strong { color: var(--ink); font-size: 1rem; line-height: 1.45; }
@keyframes contract-breathe {
  0%, 100% { transform: scale(.96); filter: drop-shadow(0 8px 18px rgba(129,0,255,.14)); opacity: .86; }
  50% { transform: scale(1.05); filter: drop-shadow(0 16px 28px rgba(129,0,255,.24)); opacity: 1; }
}
.contract-viewer { width: min(980px, calc(100% - 2rem)); margin: 0 auto 3rem; }
.contract-toolbar { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; padding: .85rem 0; background: var(--bg); }
.contract-toolbar-bottom { position: static; margin-top: .5rem; }
.contract-page-heading { padding-bottom: 0; }
.contract-page-heading + .contract-viewer { margin-top: -1.1rem; }
.contract-page-heading + .contract-viewer .contract-toolbar:first-child { padding-top: 0; }
.contract-frame { width: 100%; min-height: 72vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.contract-template-dialog { width: min(94%, 880px); max-height: 88vh; padding: clamp(1.2rem, 3vw, 2rem); overflow: auto; border-top: 6px solid var(--brand-purple); }
.contract-template-dialog h2 { margin: .2rem 2rem 1rem 0; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.contract-template-text { max-height: 62vh; overflow: auto; padding: clamp(1rem, 2vw, 1.4rem); border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #29313d; font-size: .94rem; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
.contract-document { padding: clamp(1rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #1f2933; line-height: 1.55; }
.contract-document h1 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: 0; text-transform: uppercase; }
.contract-document h2 { margin: 1.6rem 0 .55rem; font-size: 1.15rem; letter-spacing: 0; text-transform: uppercase; }
.contract-document h3 { margin: 1rem 0 .4rem; font-size: 1rem; }
.contract-document p { margin: .8rem 0; }
.contract-document .contract-header + p { margin-top: 1.35rem; }
.contract-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid #202b3a; }
.contract-header img { width: min(230px, 38vw); height: auto; }
.contract-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .9rem; }
.contract-facts div { padding: .65rem .75rem; border: 1px solid #e6e2ee; border-radius: 8px; }
.contract-facts dt { color: #667085; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.contract-facts dd { margin: .2rem 0 0; font-weight: 800; }
.contract-signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; text-align: center; }
.contract-signatures span { display: block; height: 4rem; border-bottom: 1px solid #1f2933; }
.contract-signatures strong, .contract-signatures small { display: block; margin-top: .45rem; }
.contract-page-break { break-before: page; page-break-before: always; }
.contract-pet-file { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; align-items: start; }
.contract-pet-file img { width: 100%; border-radius: 8px; }
.contract-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.adoption-dialog-actions { align-items: center; }
.adoption-dialog-actions .button { min-width: 150px; }
.adoption-action-dialog-danger { border-top-color: #b42318; }
.adoption-action-dialog-danger .dialog-kicker { color: #b42318; }
.adoption-action-dialog-danger .adoption-dialog-icon { background: #b42318; box-shadow: 0 14px 30px rgba(180,35,24,.2); }
.adoption-action-dialog-danger .adoption-dialog-note { border-color: rgba(180,35,24,.18); color: #6a211b; background: #fff5f3; }
.status-pill.available { color: #075d47; background: #dff8ef; }
.status-pill.adopted { color: #704500; background: #fff0c9; }
.evaluation-form { display: grid; gap: .8rem; }
.evaluation-heading { padding-bottom: 1rem; }
.evaluation-progress { height: 12px; overflow: hidden; border-radius: 999px; background: #eee5f7; }
.evaluation-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }
.evaluation-question { display: grid; gap: .45rem; padding-block: 1rem; }
.evaluation-question-title { margin: 0 0 .35rem; color: #2d183d; font: 900 1.02rem/1.35 Manrope, sans-serif; }
.evaluation-question .choice-card { margin: .28rem 0; padding: .62rem .8rem; border-radius: 10px; }
.evaluation-question .choice-card span { line-height: 1.32; }
.evaluation-question .choice-card input { margin-top: .08rem; }
.evaluation-question > input[type="number"] { max-width: 260px; }
.evaluation-question .input-suffix { display: inline-flex; align-items: center; gap: .55rem; max-width: 340px; }
.evaluation-question .input-suffix input { min-width: 0; max-width: 260px; }
.evaluation-question .input-suffix span { color: var(--muted); font-weight: 900; }
.evaluation-results { display: grid; min-width: 0; gap: 1rem; }
.evaluation-request-decision { display: grid; min-width: 0; gap: .8rem; border-left: 5px solid var(--brand-purple); background: #fbf8ff; overflow-wrap: anywhere; }
.evaluation-request-decision p { max-width: 100%; margin: 0; color: #38254b; line-height: 1.55; font-weight: 800; }
.evaluation-request-decision .card-actions { display: grid; grid-template-columns: max-content max-content minmax(0,1fr) max-content; align-items: center; gap: .5rem; min-width: 0; max-width: 100%; margin-top: .2rem; }
.evaluation-request-decision form { min-width: 0; max-width: 100%; margin: 0; }
.evaluation-request-decision .button { max-width: 100%; white-space: normal; }
.evaluation-request-reject { grid-column: 4; justify-self: end; }
.evaluation-export-detail { margin-top: 1rem; }
.evaluation-flag-list { display: grid; gap: .6rem; padding-left: 1.2rem; }
.evaluation-flag-note { margin: .35rem 0 .7rem; padding: .75rem .9rem; border-left: 5px solid; border-radius: 10px; font-weight: 800; line-height: 1.45; }
.evaluation-flag-note-red { color: #7f1d1d; border-left-color: #dc2626; background: #fff5f5; }
.evaluation-flag-note-yellow { color: #78350f; border-left-color: #d97706; background: #fffbeb; }
.evaluation-dimension-rating-title { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.evaluation-summary-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.evaluation-summary-block h3 { margin: 0 0 .75rem; color: #2d183d; font-size: 1rem; }
.evaluation-summary-answer { display: grid; gap: .3rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.evaluation-summary-answer + .evaluation-summary-answer { margin-top: .55rem; }
.evaluation-summary-answer span { color: var(--muted); font-size: .86rem; font-weight: 800; }
.evaluation-summary-answer strong { color: var(--ink); line-height: 1.4; }
.evaluation-score-row { display: grid; gap: .2rem; margin: .75rem 0; }
.evaluation-score-row strong { color: #2d183d; font-size: .92rem; line-height: 1.25; }
.evaluation-score-row span { color: var(--ink); font-weight: 800; }
.evaluation-detail-heading {
  margin: 1.65rem 0 .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #2d183d;
  font-size: 1.05rem;
}
.evaluation-detail-panel h2 + .evaluation-detail-heading {
  margin-top: .65rem;
  padding-top: 0;
  border-top: 0;
}
.evaluation-detail-subheading { margin: 1rem 0 .55rem; color: #4a315f; font-size: .95rem; }
.evaluation-risk-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.evaluation-risk-card { padding: .85rem; border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; background: #fff; }
.evaluation-risk-card h4 { margin: 0 0 .45rem; font-size: .92rem; }
.evaluation-risk-card ul { display: grid; gap: .35rem; margin: 0; padding-left: 1.1rem; color: #394150; }
.risk-high, .risk-critical { border-left-color: #dc2626; background: #fff5f5; }
.risk-high .risk-badge, .risk-critical .risk-badge { color: #7f1d1d; background: #fee2e2; }
.risk-badge.risk-high, .risk-badge.risk-critical { color: #7f1d1d; background: #fee2e2; }
.risk-medium { border-left-color: #d97706; background: #fffbeb; }
.risk-medium .risk-badge { color: #78350f; background: #fef3c7; }
.risk-badge.risk-medium { color: #78350f; background: #fef3c7; }
.risk-low { border-left-color: #2563eb; background: #eff6ff; }
.risk-low .risk-badge { color: #1e3a8a; background: #dbeafe; }
.risk-badge.risk-low { color: #1e3a8a; background: #dbeafe; }
.risk-positive { border-left-color: #059669; background: #ecfdf5; }
.risk-positive .risk-badge { color: #064e3b; background: #d1fae5; }
.risk-badge.risk-positive { color: #064e3b; background: #d1fae5; }
.evaluation-dimension-list { display: grid; gap: .3rem; margin: .5rem 0; padding-left: 1.1rem; }
.evaluation-highlight-note { margin: 1rem 0; padding: 1rem; border-left: 5px solid var(--brand-purple); border-radius: 10px; color: #2d183d; background: #f7f0ff; font-weight: 800; line-height: 1.5; }
.evaluation-highlight-note p { margin: 0; }
.evaluation-highlight-note p + p { margin-top: .65rem; }
.evaluation-guidance-table { overflow-x: auto; margin: .7rem 0 1rem; border: 1px solid var(--line); border-radius: 10px; }
.evaluation-guidance-table table { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
.evaluation-guidance-table th, .evaluation-guidance-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.evaluation-guidance-table th { color: #2d183d; background: #f7f3fb; font-size: .82rem; text-transform: uppercase; }
.evaluation-guidance-table th:not(:first-child) { text-align: center; }
.evaluation-guidance-table tr:last-child td { border-bottom: 0; }
.evaluation-guidance-table td:not(:first-child) { text-align: center; }
.evaluation-guidance-table td:first-child { min-width: 260px; text-align: left; }
.matrix-marker { font-weight: 900; }
.matrix-marker-warning { color: #d97706; }
.matrix-marker-red { color: #b42318; }
.matrix-marker-positive { color: #047857; }
.matrix-marker-neutral { color: #64748b; }
.risk-badge { display: inline-flex; align-items: center; min-height: 24px; padding: .15rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 900; }
@media print {
  .site-header, .site-footer, .page-heading .button, .evaluation-results button { display: none !important; }
  body[data-print-mode="contract"] .site-header,
  body[data-print-mode="contract"] .site-footer,
  body[data-print-mode="contract"] .page-heading,
  body[data-print-mode="contract"] .contract-toolbar { display: none !important; }
  body[data-print-mode="contract"] main,
  body[data-print-mode="contract"] .contract-viewer { width: 100%; margin: 0; }
  body[data-print-mode="contract"] .contract-document { border: 0; border-radius: 0; padding: 0; }
  body[data-print-mode="summary"] .page-heading,
  body[data-print-mode="summary"] .evaluation-detail-panel,
  body[data-print-mode="summary"] .evaluation-results > article:first-child { display: none !important; }
  .pet-form, .page-heading { max-width: none; margin: 0; padding: 0; }
  .panel { box-shadow: none; break-inside: avoid; }
}
.status-pill.finalized { color: #3b1880; background: #eadfff; }

@media (max-width: 900px) {
  .publication-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pet-browse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .evaluation-risk-grid { grid-template-columns: 1fr; }
  .pet-detail { grid-template-columns: 1fr; }
  .pet-story-desktop { display: none; }
  .pet-story-mobile { display: block; }
  .followup-adopter-grid { grid-template-columns: repeat(2,1fr); }
  .followup-address-grid { grid-template-columns: repeat(2,1fr); }
  .readonly-grid.two { grid-template-columns: 1fr; }
  .followup-visit-row { grid-template-columns: 1fr; }
  .followup-visit-row .choice-card { margin-top: 0; }
  .followup-visit-remove { justify-self: start; align-self: auto; margin-bottom: 0; }
  .pet-location-row { grid-template-columns: 1fr; }
  .dashboard-tabs-bar {
    flex-direction: column;
    gap: .75rem;
  }
  .dashboard-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    overflow-x: visible;
  }
  .dashboard-tabs a {
    width: auto;
    min-width: max-content;
    box-sizing: border-box;
    text-align: center;
  }
  .dashboard-country-form {
    width: 100%;
    flex-basis: auto;
    transform: none;
  }
  .dashboard-search-grid { grid-template-columns: 1fr; }
  .available-pet-search-panel .dashboard-search-grid > label {
    grid-column: 1;
    grid-row: 1;
  }
  .available-pet-search-panel .dashboard-location-filter {
    grid-column: 1;
    grid-row: 2;
  }
  .available-pet-search-panel .dashboard-add-location {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    margin: .2rem 0 0;
  }
  .available-filter-actions {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    margin-top: .2rem;
  }
  .received-request-search-panel .dashboard-search-grid {
    grid-template-columns: 1fr;
  }
  .card-actions.received-filter-actions {
    justify-self: stretch;
    width: 100%;
    margin-top: .2rem;
  }
  .received-status-filter > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-location-filter { grid-column: auto; }
  .dashboard-location-row { grid-template-columns: 1fr; }
  .dashboard-add-location {
    width: 100%;
    margin-left: 0;
  }
  .dashboard-filter-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .dashboard-filter-toolbar .dashboard-add-location,
  .card-actions.dashboard-filter-actions,
  .card-actions.dashboard-filter-actions .button {
    grid-column: 1;
    width: 100%;
  }
  .dashboard-filter-toolbar .dashboard-add-location {
    left: 0;
  }
  .available-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
  }
  .available-filter-actions .button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding-inline: .75rem;
  }
  .card-actions.dashboard-filter-actions {
    margin-left: 0;
  }
  .dashboard-all-state { margin: 0; }
  .evaluation-detail-page .pet-form,
  .evaluation-detail-page .panel,
  .evaluation-request-decision,
  .evaluation-request-decision .card-actions { width: 100%; max-width: 100%; min-width: 0; }
  .evaluation-request-decision .card-actions { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; }
  .evaluation-request-decision .card-actions .button { width: 100%; min-width: 0; padding-inline: .7rem; white-space: normal; }
  .evaluation-request-reject { grid-column: 1 / -1; justify-self: stretch; }
}
@media (max-width: 650px) {
  .pet-form { padding: 0 1rem; }
  .evaluation-request-decision { padding-inline: 1rem; }
  .radio-card-grid.two,.radio-card-grid.three,.pet-image-grid,.publication-grid,.pet-browse-grid { grid-template-columns: 1fr; }
  .medical-test-grid { grid-template-columns: 1fr; }
  .vaccine-list .dog-only,
  .vaccine-list .cat-only { grid-template-columns: 1fr; }
  .check-with-select { grid-template-columns: 1fr; }
  .medical-test-grid .check-with-select { grid-template-columns: 1fr; }
  .followup-adopter-grid { grid-template-columns: 1fr; }
  .followup-address-grid { grid-template-columns: 1fr; }
  .request-card { display: grid; grid-template-columns: 82px minmax(0,1fr); padding: 1rem; }
  .request-card > div:not(.request-card-image) { padding: 0; }
  .request-card-image { width: 82px; }
}

/* Adopta Patitas brand refresh */
:root {
  --ink: #15131a;
  --muted: #686274;
  --cream: #fbf9ff;
  --paper: #ffffff;
  --line: #e9e1f2;
  --coral: #8100ff;
  --coral-dark: #6900d1;
  --yellow: #ce7ff5;
  --teal: #0055ff;
  --navy: #15002b;
  --lavender: #f5eaff;
  --brand-purple: #8100ff;
  --brand-blue: #0055ff;
  --brand-lilac: #ce7ff5;
  --brand-gradient: linear-gradient(120deg, #0055ff 0%, #8100ff 56%, #ce7ff5 100%);
  --shadow: 0 20px 60px rgba(68, 0, 137, .12);
}

body {
  background:
    radial-gradient(circle at 8% 5%, rgba(206, 127, 245, .12), transparent 24rem),
    var(--cream);
}
a { color: var(--brand-purple); }
a:hover { color: var(--brand-blue); }

.site-header {
  position: sticky;
  top: 0;
  min-height: 84px;
  border-bottom-color: rgba(129, 0, 255, .1);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 30px rgba(58, 0, 115, .05);
}
.brand { width: clamp(190px, 20vw, 270px); min-width: 145px; height: 62px; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.main-nav > a:not(.button) { color: var(--ink); }
.main-nav > a:not(.button):hover { color: var(--brand-purple); }
.nav-dropdown summary:hover { color: var(--brand-purple); }
.nav-dropdown-menu a:hover { background: #f2e6ff; color: var(--brand-purple); }
.link-button { color: var(--brand-purple); }
.language-switch a.active { color: var(--brand-purple); }

.button {
  border-color: transparent;
  background: var(--brand-gradient);
  box-shadow: 0 11px 28px rgba(129, 0, 255, .24);
}
.button:hover {
  border-color: transparent;
  background: linear-gradient(120deg, #0049dc, #6800d0 58%, #b968e1);
  box-shadow: 0 14px 32px rgba(81, 0, 180, .28);
}
.button:disabled, .button.disabled,
.button:disabled:hover, .button.disabled:hover {
  cursor: not-allowed;
  color: #788192;
  border-color: #d9dee7;
  background: #edf0f5;
  box-shadow: none;
  transform: none;
}
.button-ghost {
  color: var(--brand-purple);
  border-color: rgba(129, 0, 255, .22);
  background: rgba(255, 255, 255, .9);
}
.button-ghost:hover { color: var(--brand-blue); border-color: var(--brand-blue); background: #fff; }
.eyebrow { color: var(--brand-purple); }

.hero {
  position: relative;
  min-height: calc(92vh - 84px);
  background:
    radial-gradient(circle at 8% 12%, rgba(206, 127, 245, .22), transparent 23rem),
    radial-gradient(circle at 89% 72%, rgba(0, 85, 255, .15), transparent 27rem),
    linear-gradient(150deg, #fff 0%, #fbf7ff 56%, #f2f6ff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  right: 45%;
  width: 190px;
  height: 190px;
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .045;
  transform: rotate(-18deg);
  pointer-events: none;
}
.hero-copy h1 { color: #17121d; }
.hero-copy h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 7px;
  margin-top: 1.2rem;
  border-radius: 999px;
  background: var(--brand-gradient);
}
.trust-row span::first-letter { color: var(--brand-purple); }
.hero-art::before {
  inset: 8% 0 3% 4%;
  border-radius: 44% 56% 46% 54%;
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.55), transparent 18%),
    linear-gradient(145deg, #ce7ff5 0%, #8100ff 48%, #0055ff 100%);
  box-shadow: 0 28px 75px rgba(81, 0, 180, .2);
}
.hero-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 18% 13% 14% 18%;
  background: url('/assets/brand/ap-logo-huellas.webp') center/65% auto no-repeat;
  opacity: .12;
  filter: brightness(0) invert(1);
  transform: rotate(-8deg);
}
.sun { background: rgba(255,255,255,.72); box-shadow: 0 0 0 14px rgba(206,127,245,.24); }
.pet-card { border-color: rgba(255,255,255,.9); box-shadow: 0 24px 60px rgba(34, 0, 72, .22); }
.pet-card::before {
  content: "";
  width: 54px;
  height: 5px;
  margin-bottom: .65rem;
  border-radius: 999px;
  background: var(--brand-gradient);
}
.pet-emoji { filter: drop-shadow(0 8px 8px rgba(81, 0, 180, .16)); }
.heart { color: #fff; text-shadow: 0 5px 15px rgba(45,0,86,.28); }
.heart-two { color: #dba0fa; }

.mission-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #101014 0%, #240042 55%, #001b58 100%);
}
.mission-section::after {
  content: "";
  position: absolute;
  right: 3%;
  width: 230px;
  height: 230px;
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .09;
  filter: brightness(0) invert(1);
  transform: rotate(12deg);
}
.mission-section .eyebrow { color: var(--brand-lilac); }
.mission-section p { color: #e5dcee; }

.auth-page, .soft-page { background: linear-gradient(145deg, #f8f1ff, #f4f7ff); }
.auth-shell { border: 1px solid rgba(129, 0, 255, .08); box-shadow: 0 28px 80px rgba(58, 0, 115, .16); }
.auth-aside { background: linear-gradient(145deg, #160026 0%, #5800b7 58%, #0055ff 130%); }
.auth-aside::before {
  content: "";
  position: absolute;
  inset: auto -45px 12% auto;
  width: 210px;
  height: 210px;
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .1;
  filter: brightness(0) invert(1);
  transform: rotate(14deg);
}
.auth-aside::after { background: var(--brand-blue); opacity: .38; }
.register-aside::after { background: var(--brand-lilac); opacity: .45; }
.auth-brand-seal {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  margin-bottom: 2rem;
  border: 5px solid rgba(255,255,255,.72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(16,0,39,.3);
}
.auth-aside .eyebrow { position: relative; z-index: 1; color: #e6bbfb; }
.auth-paws { filter: drop-shadow(0 10px 20px rgba(24,0,54,.3)); }
.form-card h2 { color: #1d1227; }
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.2rem, 8vw, 8.5rem) clamp(2rem, 5vw, 3.4rem);
  background:
    radial-gradient(circle at 12% 20%, rgba(206,127,245,.2), transparent 22rem),
    radial-gradient(circle at 92% 52%, rgba(0,85,255,.14), transparent 25rem),
    linear-gradient(145deg, #fff 0%, #fbf7ff 62%, #eef4ff 100%);
}
.contact-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -42px;
  width: 210px;
  height: 210px;
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .06;
  transform: rotate(12deg);
}
.contact-hero > div { position: relative; z-index: 1; max-width: 760px; }
.contact-hero h1 { margin: 0 0 .75rem; color: #17121d; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.contact-hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.contact-shell {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.35fr);
  grid-template-areas: "privacy aside" "privacy form";
  column-gap: clamp(1rem, 3vw, 2rem);
  row-gap: .8rem;
  width: min(1120px, calc(100% - 2rem));
  margin: -1.2rem auto 2rem;
  align-items: start;
}
.contact-aside {
  grid-area: aside;
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 1.65rem) clamp(1.4rem, 3vw, 2rem);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #160026 0%, #5b00bd 58%, #0055ff 130%);
  box-shadow: 0 24px 60px rgba(58,0,115,.18);
  align-self: start;
}
.contact-aside::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.contact-aside img { position: relative; z-index: 1; width: 96px; height: 96px; margin-bottom: 1.4rem; border-radius: 50%; border: 4px solid rgba(255,255,255,.65); object-fit: cover; }
.contact-aside h2, .contact-aside p { position: relative; z-index: 1; }
.contact-aside h2 { margin: 0 0 .7rem; color: #fff; }
.contact-aside p { margin: 0; color: #eee6f6; line-height: 1.55; }
.contact-privacy {
  grid-area: privacy;
  align-self: start;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(129,0,255,.09);
  border-radius: 14px;
  color: #5f6876;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(58,0,115,.06);
  font-size: .78rem;
  line-height: 1.45;
  scroll-margin-top: 6rem;
}
.contact-privacy-section + .contact-privacy-section { margin-top: .8rem; }
.contact-privacy h2 { margin: 0 0 .32rem; color: #2b1a37; font-size: .8rem; line-height: 1.3; letter-spacing: .04em; }
.contact-privacy p { margin: 0; }
.contact-privacy p + p { margin-top: .4rem; }
.privacy-terms-dialog { width: min(92%, 680px); max-height: min(82vh, 760px); padding: 1.4rem 1.6rem; overflow-y: auto; }
.privacy-terms-dialog-content { color: #5f6876; font-size: .84rem; line-height: 1.5; }
.privacy-terms-dialog .contact-privacy-section + .contact-privacy-section { margin-top: 1rem; }
.privacy-terms-dialog h2 { margin: 0 0 .38rem; color: #2b1a37; font-size: .9rem; line-height: 1.3; letter-spacing: .04em; }
.privacy-terms-dialog p { margin: 0; }
.privacy-terms-dialog p + p { margin-top: .5rem; }
.tcp-shell { display: grid; width: min(100% - 2rem, 900px); margin: 1.5rem auto 5rem; gap: 1.25rem; }
.tcp-version-card { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding: 1rem 1.25rem; background: #f5eaff; }
.tcp-version-card strong { color: #2b1a37; }
.tcp-version-card span { color: #665d70; font-size: .88rem; font-weight: 700; }
.tcp-version-card p { flex-basis: 100%; margin: .25rem 0 0; color: #665d70; font-size: .88rem; line-height: 1.5; }
.tcp-content { padding: clamp(1.4rem, 4vw, 2.5rem); }
.tcp-content .contact-privacy-section + .contact-privacy-section { margin-top: 1.5rem; }
.tcp-content h2 { color: #2b1a37; font-size: 1rem; letter-spacing: .04em; }
.tcp-content p { color: #5f6876; line-height: 1.65; }
.tcp-content a { color: #5b00b8; font-weight: 800; text-decoration: underline; text-underline-offset: .12em; }
.tcp-terms-header { padding-bottom: 1.1rem; border-bottom: 1px solid rgba(129,0,255,.12); }
.tcp-terms-header h2 { margin: 0 0 .45rem; font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: 0; }
.tcp-terms-header p { margin: 0; }
.tcp-terms-section { padding-top: 1.35rem; scroll-margin-top: 6rem; }
.tcp-terms-section + .tcp-terms-section { margin-top: 1.35rem; border-top: 1px solid rgba(129,0,255,.09); }
.tcp-terms-section h3 { margin: 0 0 .55rem; color: #2b1a37; font-size: 1.02rem; line-height: 1.35; }
.tcp-terms-section p { margin: 0; }
.evaluation-special-data-consent { max-width: 760px; margin-inline: auto; }
.evaluation-special-data-consent form { display: grid; gap: 1rem; margin-top: 1.15rem; }
.evaluation-special-data-consent .button { justify-self: start; }
.delete-account-shell { width: min(100% - 2rem, 1100px); margin: 1.5rem auto 2.5rem; }
.delete-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.delete-account-card { min-width: 0; margin: 0; }
.delete-account-card-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.delete-account-card-heading .round-icon { width: 48px; height: 48px; flex: 0 0 48px; margin: 0; font-size: 1.3rem; }
.delete-account-card-heading h2 { margin: .1rem 0 0; font-size: 1.4rem; }
.delete-account-card .delete-account-warning { margin: 1rem 0 1.35rem; }
.delete-account-warning { padding: 1rem; border-left: 3px solid #b42318; border-radius: 10px; color: #5f3540; background: #fff4f3; }
.delete-account-warning p { margin: 0; line-height: 1.55; }
.delete-account-warning p + p { margin-top: .7rem; }
.delete-account-warning a { font-weight: 850; text-decoration: underline; }
.delete-account-card form { margin-top: 1rem; }
.delete-account-card .form-links { margin-top: -.45rem; }
.contact-form-card { grid-area: form; margin: 0; width: 100%; padding-block: clamp(1.25rem, 2.4vw, 1.65rem); border: 1px solid rgba(129,0,255,.09); box-shadow: 0 24px 60px rgba(58,0,115,.1); }
.contact-form-card .button-block { margin-top: .45rem; }
.contact-phone-block { margin: .4rem 0 1rem; }
.contact-recaptcha { margin: .25rem 0 .75rem; }
@media (max-width: 900px) {
  .contact-shell { grid-template-columns: 1fr; grid-template-areas: "aside" "form" "privacy"; margin-top: 1rem; }
  .contact-privacy { margin-top: 0; }
}
@media (max-width: 650px) {
  .contact-hero { padding-inline: 1.2rem; }
  .contact-shell { width: min(100% - 1.2rem, 620px); }
  .delete-account-grid { grid-template-columns: 1fr; }
}
.donation-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 5vw, 3.8rem) clamp(1.2rem, 8vw, 8.5rem) clamp(2.8rem, 6vw, 4.8rem);
  color: #fff;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.18), transparent 18rem),
    radial-gradient(circle at 90% 72%, rgba(206,127,245,.26), transparent 24rem),
    linear-gradient(130deg, #130021 0%, #5a00bd 56%, #0055ff 128%);
}
.donation-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: -72px;
  width: clamp(280px, 28vw, 430px);
  height: clamp(280px, 28vw, 430px);
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .14;
  filter: brightness(0) invert(1);
  transform: rotate(13deg);
}
.donation-hero-copy { position: relative; z-index: 1; max-width: 720px; }
.donation-hero .eyebrow { margin-bottom: .55rem; color: #f0c5ff; }
.donation-hero h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2.15rem, 4.8vw, 4.15rem); }
.donation-hero p { max-width: 650px; margin: 0; color: #eee6f6; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.55; }
.donation-card {
  border: 1px solid rgba(129,0,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 60px rgba(58,0,115,.1);
}
.donation-card h2 { margin-top: 0; color: #1d1227; }
.donation-story-card p { color: #4f5967; line-height: 1.65; }
.donation-story-card a { font-weight: 900; }
.donation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  grid-template-areas: "story side" "cash side" "impact impact";
  align-items: start;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: -2rem auto 4rem;
  position: relative;
  z-index: 2;
}
.donation-card { padding: clamp(1.25rem, 3vw, 1.8rem); }
.donation-story-card { grid-area: story; }
.donation-side-stack {
  grid-area: side;
  display: grid;
  gap: .35rem;
  align-content: start;
}
.donation-kind-card { grid-area: auto; }
.donation-card-main { grid-area: cash; align-self: start; }
.donation-impact-card { grid-area: impact; }
.donation-card h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  line-height: 1.2;
}
.donation-title-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand-gradient);
  font-size: 1rem;
  line-height: 1;
}
.donation-kind-card {
  position: relative;
  overflow: hidden;
}
.donation-kind-logo {
  grid-area: auto;
  align-self: start;
  justify-self: center;
  display: block;
  width: min(230px, 70%);
  margin: 1.95rem auto 0;
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(58,0,115,.16);
}
.donation-protector-card {
  margin-top: 1.95rem;
  font-size: .96rem;
  line-height: 1.55;
}
.donation-protector-card p { margin: 0; }
.donation-protector-card p + p { margin-top: .65rem; }
.donation-terms-card {
  margin-top: .65rem;
  color: #4f5967;
  font-size: .9rem;
  line-height: 1.55;
}
.donation-terms-card h2 { margin: 0 0 .45rem; font-size: 1rem; }
.donation-terms-card p { margin: 0 0 .65rem; }
.donation-terms-card a { color: var(--brand-purple); font-weight: 850; text-decoration: underline; text-underline-offset: .14em; }
.donation-pay-button {
  flex-direction: column;
  min-width: 145px;
  text-align: center;
  line-height: 1.15;
  gap: .12rem;
}
.donation-pay-button span + span {
  font-size: .82rem;
  font-weight: 800;
}
.donation-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 1.2rem; }
.donation-detail-list { display: grid; gap: .8rem; margin: .7rem 0 1.2rem; }
.donation-detail {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr) auto;
  gap: .25rem .75rem;
  align-items: center;
  padding: .85rem;
  border-radius: 12px;
  background: #f8f3ff;
}
.donation-detail span { color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.donation-detail strong { min-width: 0; color: #24152f; }
.protector-bank-detail {
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
}
.donation-copy-button { inline-size: 78px; min-height: 32px; justify-content: center; padding: .32rem .7rem; border-radius: 8px; font-size: .78rem; }
.donation-copy-spacer { display: block; width: 1px; }
.breakable { overflow-wrap: anywhere; }
.donation-impact-list { display: grid; gap: .7rem; }
.donation-impact-card .donation-impact-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.donation-impact-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon amount" "icon label";
  gap: .15rem .65rem;
  align-items: center;
  padding: .8rem .9rem;
  border-left: 5px solid var(--brand-purple);
  border-radius: 12px;
  background: #f8f3ff;
}
.donation-impact-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1.65rem;
  line-height: 1;
}
.donation-impact-list strong { grid-area: amount; color: var(--brand-purple); font-size: 1.12rem; }
.donation-impact-list div > span:not(.donation-impact-icon) { grid-area: label; color: #4f5967; line-height: 1.35; }
.audit-repeat-list { display: grid; gap: .8rem; margin: .8rem 0; }
.audit-repeat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: .75rem; padding: .8rem; border: 1px solid rgba(129,0,255,.1); border-radius: 12px; background: #fbf8ff; }
.audit-repeat-full { grid-column: 1 / -1; }
.audit-repeat-add { margin-bottom: 1rem; }
.audit-repeat-remove { grid-column: 1 / -1; align-self: start; justify-self: start; min-width: 112px; margin-top: .25rem; }
@media (max-width: 900px) {
  .donation-grid { grid-template-columns: 1fr; grid-template-areas: "story" "kind" "cash" "impact" "logo" "protector" "terms"; }
  .donation-side-stack { display: contents; }
  .donation-kind-card { grid-area: kind; }
  .donation-kind-logo { grid-area: logo; }
  .donation-protector-card { grid-area: protector; }
  .donation-terms-card { grid-area: terms; margin-top: 0; }
  .donation-card-main { grid-row: auto; }
  .donation-impact-card .donation-impact-list { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .donation-hero { padding-inline: 1.2rem; }
  .donation-grid { width: min(100% - 1.2rem, 620px); }
  .donation-detail { grid-template-columns: 1fr; }
  .donation-copy-button { justify-self: start; }
  .donation-copy-spacer { display: none; }
}
input, select, textarea, .prefixed-input { border-color: #ded4e9; }
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(0, 85, 255, .12); }
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 2px solid rgba(129,0,255,.25);
  outline-offset: 2px;
}

.round-icon { background: var(--brand-gradient); box-shadow: 0 12px 28px rgba(129,0,255,.22); }
.center-card { border: 1px solid rgba(129,0,255,.08); }
.app-page { background: linear-gradient(180deg, #f8f4fc, #f5f7fb 30rem); }
.status-pill { color: #0041c8; background: #e6eeff; }
.status-pill.warning { color: #6000bd; background: #f1dfff; }
.profile-nav { border: 1px solid rgba(129,0,255,.08); box-shadow: 0 12px 35px rgba(55,0,110,.06); }
.profile-nav a:hover, .profile-nav a.active { color: var(--brand-purple); background: #f2e6ff; }
.panel { border-color: rgba(129,0,255,.1); box-shadow: 0 12px 38px rgba(50,0,100,.045); }
.section-number { background: var(--brand-gradient); }
.required-note, .text-action { color: var(--brand-purple); }
.privacy-note { border-left-color: var(--brand-blue); color: #31466d; background: #eef3ff; }
.verified-field span { color: var(--brand-blue); }
.save-bar { border-color: rgba(129,0,255,.12); }
.suggestions button:hover { background: #f5eaff; }

dialog::backdrop { background: rgba(25, 0, 50, .58); }
.dashboard-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #140020 0%, #5b00bd 58%, #0055ff 125%);
}
.dashboard-hero::after {
  content: "";
  position: absolute;
  right: max(2rem, calc((100vw - 1260px) / 2));
  width: 180px;
  height: 180px;
  background: url('/assets/brand/ap-logo-huellas.webp') center/contain no-repeat;
  opacity: .1;
  filter: brightness(0) invert(1);
}
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-hero .eyebrow { color: #e7c2fa; }
.dashboard-hero p { color: #e9e0f0; }
.empty-state { border-color: rgba(129,0,255,.22); background: linear-gradient(145deg, #fff, #fbf7ff); }
.empty-pets { filter: drop-shadow(0 10px 12px rgba(83,0,165,.14)); }

.site-footer { color: #d3c8df; background: #100019; }
.footer-brand { display: flex; align-items: center; gap: .65rem; }
.footer-brand img { width: 38px; height: 38px; object-fit: contain; }

@media (max-width: 650px) {
  .site-header { min-height: 72px; }
  .brand { width: 145px; height: 52px; }
  .site-header.nav-collapsed .brand { width: clamp(120px, 28vw, 145px); min-width: 120px; height: 50px; }
  .site-header.nav-collapsed .nav-quick-links { gap: .3rem; }
  .nav-quick-links > a,
  .nav-quick-links .nav-dropdown summary { min-height: 34px; padding: .45rem .5rem; font-size: .78rem; }
  .hero { min-height: auto; }
  .hero::before { display: none; }
  .auth-brand-seal { width: 88px; height: 88px; margin-bottom: 1rem; }
  .mission-section::after, .dashboard-hero::after { opacity: .055; }
}
@media (max-width: 420px) {
  .site-header { padding-inline: .25rem; }
  .site-header.nav-collapsed .brand { margin-right: .25rem; }
  .site-header.nav-collapsed .nav-quick-links { gap: .22rem; margin-right: .25rem; }
  .nav-quick-links > a,
  .nav-quick-links .nav-dropdown summary {
    min-height: 32px;
    padding: .34rem .32rem;
    font-size: .66rem;
  }
}
@media (max-width: 370px) {
  .site-header.nav-collapsed .brand { width: clamp(104px, 32vw, 120px); min-width: 104px; }
  .nav-quick-links > a,
  .nav-quick-links .nav-dropdown summary {
    min-height: 30px;
    padding: .3rem .26rem;
    font-size: .62rem;
  }
}
/* Birth date and age permissions */
.profile-nav a { display: flex; align-items: center; gap: .6rem; }
.profile-nav-icon { display: inline-grid; place-items: center; width: 1.55rem; flex: 0 0 1.55rem; font-size: 1.15rem; line-height: 1; }
.birth-date-control { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: .65rem; align-items: end; margin-top: .4rem; }
.birth-date-control > input { margin-top: 0; }
.date-picker-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 49px;
  overflow: hidden;
  border: 1px solid #ded4e9;
  border-radius: 11px;
  background: #f7efff;
  font-size: 1.25rem;
  cursor: pointer;
}
.date-picker-button:hover { border-color: var(--brand-purple); background: #f0e0ff; }
.date-picker-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.profile-personal-fields { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.profile-personal-fields > label,
.profile-personal-fields > .profile-personal-field { min-width: min(100%, 260px); flex: 1 1 280px; }
.profile-personal-field > label { display: block; }
.age-policy-note { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 14px; color: #38254b; background: #f5eaff; }
.age-policy-note strong { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; color: white; background: var(--brand-gradient); font: 900 1rem Nunito, sans-serif; }
.age-policy-note span { font-size: .84rem; }
.form-card .register-age-policy-note { margin: -.35rem 0 1.1rem; }
.age-access-status { margin-top: .8rem; padding: .75rem 1rem; border-radius: 11px; font-size: .82rem; font-weight: 800; }
.age-access-status.restricted { color: #684000; background: #fff0c9; }
dialog[open] { animation: dialog-in .16s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .profile-nav a { justify-content: center; }
}

@media (max-width: 650px) {
  .profile-nav a { justify-content: flex-start; }
  .age-policy-note { align-items: flex-start; }
  .image-dialog {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "image image"
      "prev next";
    gap: .8rem;
    max-width: calc(100vw - .75rem);
    padding: .75rem;
  }
  .image-dialog img {
    max-width: calc(100vw - 2.25rem);
    max-height: calc(100vh - 7.5rem);
  }
  .image-dialog-prev { justify-self: end; }
  .image-dialog-next { justify-self: start; }
}
/* Protector / rescuer profile */
[hidden] { display: none !important; }
textarea { width: 100%; margin-top: .4rem; padding: .72rem .9rem; resize: vertical; border: 1px solid #ded4e9; border-radius: 11px; color: var(--ink); outline: none; background: #fff; }
.profile-nav-icon { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; color: currentColor; }
.choice-card { display: flex; align-items: flex-start; gap: .7rem; margin: .75rem 0; padding: .85rem 1rem; border: 1px solid rgba(129,0,255,.14); border-radius: 12px; background: #fbf8ff; cursor: pointer; }
.choice-card:hover { border-color: rgba(129,0,255,.35); background: #f7efff; }
.choice-card.disabled { opacity: .55; cursor: not-allowed; }
.choice-card input { inline-size: 1rem; block-size: 1rem; min-height: 1rem; margin: .18rem 0 0; flex: 0 0 1rem; accent-color: var(--brand-purple); }
.choice-card span { line-height: 1.4; }
.terms-consent { margin-top: 1.1rem; }
.terms-consent-link { color: var(--brand-purple); font-weight: 900; text-decoration: underline; text-underline-offset: .14em; }
.protector-account-choice { margin-top: 1.2rem; }
.profile-name-action { margin: .35rem 0 0; }
.profile-content > .protector-profile-form { margin: 1.4rem 0 0; }
.protector-contact-grid .phone-block { margin-top: 0; }
.protector-contact-grid { align-items: start; }
.protector-contact-grid .field-title,
.protector-contact-grid > label { margin-bottom: 0; }
.protector-contact-grid .compact-phone-row,
.protector-contact-grid .protector-website-field .prefixed-input { margin-top: .4rem; }
.protector-contact-grid .compact-phone-row select,
.protector-contact-grid .compact-phone-row input { margin-top: 0; }
.protector-panel { border-top: 4px solid var(--brand-purple); }
.subsection-title { margin-top: 2rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.compact-subtitle { margin: .9rem 0 .55rem; color: var(--muted); font-size: .95rem; }
.social-grid .prefixed-input span { min-width: max-content; font-size: .75rem; }
.compact-phone-row { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: .65rem; }
.compact-phone-row select, .compact-phone-row input { margin-top: .4rem; }
.conditional-box { margin: .5rem 0 1rem; padding: 1rem; border-radius: 14px; background: #f8f5fb; }
.nested-donation-box { margin-top: -.25rem; }
.nested-donation-box > .choice-card { margin-top: 0; background: #fff; }
.nested-box { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.nested-box h4 { margin: 0 0 1rem; font: 800 1rem Nunito, sans-serif; }
.shelter-metrics { align-items: start; }
.inline-check { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; color: var(--muted); font-size: .78rem; }
.inline-check input { inline-size: 1rem; block-size: 1rem; min-height: 1rem; margin: 0; flex: 0 0 1rem; }
.dashboard-locality-control .dashboard-all-state { display: inline-flex; align-self: stretch; margin-top: 0; font-size: .86rem; }
.facility-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; margin-top: 1rem; }
.facility-grid .choice-card { height: 100%; margin: 0; }
.cooperative-equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
.cooperative-equipment-grid .choice-card { height: 100%; margin: 0; background: #fff; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }
.dialog-actions form { margin: 0; }
.danger-button { color: #fff; background: #b42318; box-shadow: 0 10px 24px rgba(180,35,24,.2); }
.danger-button:hover { color: #fff; background: #8f1c13; }
.button-ghost.danger-button { color: #fff; border-color: #b42318; background: #b42318; }
.button-ghost.danger-button:hover { color: #fff; border-color: #8f1c13; background: #8f1c13; }

@media (max-width: 900px) {
  .facility-grid,
  .cooperative-equipment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .compact-phone-row { grid-template-columns: 1fr; }
  .vet-schedule-grid,
  .schedule-time-fields,
  .vet-card,
  .vet-card-sections,
  .vet-detail-grid { grid-template-columns: 1fr; }
  .vet-card-actions,
  .vet-card-footer { justify-content: flex-start; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
}

/* Veterinary directory */
.vet-heading { align-items: end; }
.vet-heading > div:first-child { max-width: 860px; }
.directory-note {
  margin-top: .7rem;
  padding: .85rem 1rem;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  color: #465266;
  background: #eefbf8;
}
.vet-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .9rem;
}
.vet-unlicensed-report-form {
  display: grid;
  gap: 1rem;
}
.vet-report-form-block {
  padding: 1rem;
  border: 1px solid rgba(53, 65, 86, .12);
  border-radius: 14px;
  background: #faf9fc;
}
.vet-report-form-block h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}
.vet-report-form-block > :last-child { margin-bottom: 0; }
.vet-report-contact-notice { margin: .2rem 0 0; line-height: 1.55; }
.vet-report-feedback {
  margin: 0;
  padding: .75rem .9rem;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1.45;
}
.vet-report-feedback[data-state="error"] { color: #9d2929; background: #ffe5e3; }
.vet-report-feedback[data-state="success"] { color: #116b5c; background: #dff8f2; }
.report-warning-art {
  width: 118px;
  height: 118px;
  object-fit: contain;
  opacity: .8;
  filter: drop-shadow(0 10px 18px rgba(18, 57, 72, .12));
}
.vet-curp-note {
  align-items: center;
  margin: .15rem 0 1rem;
}
.directory-search {
  width: min(1120px, 92%);
  margin: 0 auto 1.5rem;
}
.compact-tabs,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}
.compact-tabs {
  align-items: center;
}
.compact-tabs .field-title {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
}
.compact-tabs label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
}
.vet-results {
  display: grid;
  gap: 1rem;
  width: min(1120px, 92%);
  margin: 0 auto 4rem;
}
.vet-results .empty-state {
  padding: 1.4rem;
  border: 1px dashed #cfd5df;
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}
.vet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 35, 56, .07);
}
.vet-card h2 { font-size: 1.45rem; }
.vet-card-main {
  display: grid;
  align-content: start;
  gap: .45rem;
}
.vet-professional-line {
  display: grid;
  gap: .15rem;
  margin: .1rem 0 .35rem;
  color: var(--muted);
  font-size: .92rem;
}
.vet-professional-line strong {
  color: var(--ink);
}
.vet-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  gap: .5rem;
}
.inline-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}
.button.icon-only {
  width: 2.35rem;
  min-width: 2.35rem;
  padding-inline: 0;
}
.button.icon-only .inline-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.vet-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  color: #fff;
  background: #1f5c53;
  box-shadow: 0 9px 18px rgba(24, 35, 56, .16), inset 0 1px 0 rgba(255,255,255,.28);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.vet-icon-link::after {
  content: "";
  position: absolute;
  inset: 3px 7px auto;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  pointer-events: none;
}
.vet-icon-link-whatsapp {
  background: linear-gradient(145deg, #2bd46f 0%, #12a64d 100%);
}
.vet-icon-link-facebook {
  background: linear-gradient(145deg, #2f82ff 0%, #1558c9 100%);
}
.vet-icon-link-instagram {
  background: linear-gradient(145deg, #f04f8b 0%, #8a35d1 100%);
}
.vet-icon-link-tiktok,
.vet-icon-link-x {
  background: linear-gradient(145deg, #303846 0%, #111827 100%);
}
.vet-icon-link-youtube {
  background: linear-gradient(145deg, #ff453b 0%, #c90000 100%);
}
.vet-icon-link-telegram {
  background: linear-gradient(145deg, #2ea7e8 0%, #1477b8 100%);
}
.vet-icon-link-website,
.vet-icon-link-phone {
  background: linear-gradient(145deg, #52647a 0%, #243246 100%);
}
.vet-icon-link:hover {
  color: #fff;
  filter: saturate(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(24, 35, 56, .22), inset 0 1px 0 rgba(255,255,255,.32);
}
.vet-icon-link:focus-visible {
  outline: 3px solid rgba(36, 170, 143, .28);
  outline-offset: 3px;
}
.vet-icon-link .inline-icon {
  position: relative;
  z-index: 1;
  width: 1.55rem;
  height: 1.55rem;
  flex-basis: 1.55rem;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.22));
}
.vet-icon-link-facebook .inline-icon {
  width: 1.7rem;
  height: 1.7rem;
  flex-basis: 1.7rem;
}
.country-suggestions {
  max-height: min(680px, 70vh);
  overflow-y: auto;
}
.protector-directory-card {
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
}
.protector-directory-card .vet-card-footer {
  align-items: end;
}
.protector-icon-actions {
  min-width: 170px;
}
.protector-details-dialog .vet-detail-actions .button {
  max-width: 100%;
}
.protector-details-dialog .vet-detail-actions .button {
  overflow-wrap: anywhere;
}
.vet-card-sections {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.vet-card-section {
  padding: .85rem;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fbfcfe;
}
.vet-card-section h3 {
  margin: 0 0 .45rem;
  font-size: .9rem;
  letter-spacing: 0;
}
.vet-summary-toggle {
  padding: 0;
}
.vet-summary-toggle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  padding: .75rem .85rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.vet-summary-toggle summary::-webkit-details-marker {
  display: none;
}
.vet-summary-toggle summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  border-radius: 50%;
  color: #1f5c53;
  background: #e2f8f3;
  font-size: 1rem;
  line-height: 1;
}
.vet-summary-toggle[open] summary {
  border-bottom: 1px solid #edf0f5;
}
.vet-summary-toggle[open] summary::after {
  content: "−";
}
.vet-summary-toggle .service-summary {
  padding: .75rem .85rem .85rem;
}
.vet-card-section p {
  margin: 0;
}
.vet-card-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.service-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.service-summary span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .2rem .65rem;
  border-radius: 999px;
  color: #23443f;
  background: #e2f8f3;
  font-size: .78rem;
  font-weight: 800;
}
.vet-details-dialog {
  width: min(980px, 94vw);
  max-height: 86vh;
  overflow: auto;
}
.vet-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: .9rem 0 1rem;
}
.vet-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.vet-detail-grid section {
  padding: .95rem;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fbfcfe;
}
.vet-detail-grid h3,
.vet-detail-grid h4 {
  margin: 0 0 .45rem;
}
.vet-detail-grid h4 {
  margin-top: .8rem;
  font-size: .95rem;
}
.vet-detail-grid ul {
  margin: .35rem 0 .75rem 1.1rem;
  padding: 0;
}
.detail-chip {
  display: inline-flex;
  margin: .15rem .25rem .15rem 0;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: #e2f8f3;
  font-size: .82rem;
  font-weight: 700;
}
.vet-auth-shell .auth-aside p {
  position: relative;
  z-index: 1;
  color: #dbe2ec;
}
.professional-summary {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border-radius: 10px;
  background: #f7f8fb;
}
.vet-phone-block .mobile-contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .7rem;
}
.vet-phone-block .mobile-contact-options label,
.appointment-options label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
}
.vet-phone-block .mobile-contact-options input,
.appointment-options input,
.compact-tabs input {
  width: auto;
  min-height: 0;
  margin: 0;
}
.vet-partner-notes {
  display: grid;
  gap: .55rem;
  margin-top: .85rem;
  padding: .8rem .95rem;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #eefbf8;
}
.vet-partner-notes p {
  margin: 0;
  color: #465266;
  font-size: .78rem;
  line-height: 1.45;
}
.vet-partner-notes a {
  color: #1f5c53;
  font-weight: 800;
}
.vet-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.vet-schedule-day { display: grid; align-content: start; }
.vet-schedule-day .choice-card { margin-bottom: .45rem; }
.schedule-time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 0;
}
.schedule-time-input {
  width: 100%;
  min-width: 8.5rem;
  margin-top: .4rem;
}
.price-input {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: .45rem;
  align-items: center;
}
.price-input select,
.price-input input { margin-top: .25rem; }
.service-price-grid {
  display: grid;
  gap: .85rem;
}
.service-price-row {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(220px, 1fr);
  gap: .65rem;
  align-items: start;
  padding: .8rem;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fff;
}
.variant-list {
  grid-column: 1 / -1;
  display: grid;
  gap: .45rem;
}
.variant-row {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(220px, 1fr) auto;
  gap: .45rem;
  align-items: center;
}
.weight-input {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  gap: .4rem;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}
.weight-input input { margin-top: 0; }
.variant-remove {
  margin: 0;
  color: #b42318;
  white-space: nowrap;
}
.danger-zone { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #ffe0dc; }
.delete-account-warning { white-space: pre-line; }

@media (max-width: 780px) {
  .vet-card,
  .service-price-row,
  .variant-row { grid-template-columns: 1fr; }
  .vet-card-actions { justify-content: flex-start; }
  .price-input { grid-template-columns: 88px minmax(0, 1fr); }
}

.legal-acceptance-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(25, 0, 50, .72);
  backdrop-filter: blur(5px);
}
.legal-acceptance-modal {
  width: min(100%, 660px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  border: 1px solid rgba(129, 0, 255, .14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(31, 0, 61, .3);
}
.legal-acceptance-modal h2 { margin: .35rem 0 .75rem; color: #2b1a37; }
.legal-acceptance-modal > p { color: var(--muted); line-height: 1.6; }
.legal-version-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid #eadff5;
  border-radius: 14px;
  background: #faf6ff;
}
.legal-version-summary div { display: flex; gap: .4rem; }
.legal-version-summary dt { color: var(--muted); font-weight: 700; }
.legal-version-summary dd { margin: 0; color: #2b1a37; font-weight: 900; }
.legal-change-summary { padding-left: .85rem; border-left: 4px solid var(--brand-lilac); }
.legal-acceptance-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1rem 0;
  padding: .9rem 1rem;
  border: 1px solid #e3d3f2;
  border-radius: 14px;
  background: #f8f0ff;
  color: #2b1a37;
  font-weight: 700;
  line-height: 1.45;
}
.legal-acceptance-check input { width: auto; min-height: 0; margin: .2rem 0 0; accent-color: var(--brand-purple); }
.legal-acceptance-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.legal-acceptance-actions .button { flex: 1 1 220px; text-align: center; }

@media (max-width: 520px) {
  .legal-acceptance-backdrop { place-items: end center; padding: .65rem; }
  .legal-acceptance-modal { max-height: calc(100vh - 1.3rem); border-radius: 20px; }
  .legal-acceptance-actions { flex-direction: column; }
}
