.finder-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(18px,3.4vw,52px) clamp(16px,5vw,76px) clamp(46px,7vw,96px);
}

.finder-crumb,.finder-text-button,.finder-secondary,.finder-action,.finder-step,.finder-select-label,.finder-currency,.finder-cost-fields label,.finder-estimate span,.finder-utilities,.finder-rank,.finder-match dt,.finder-reason strong,.finder-planner-link,.finder-card-links,.finder-budget-tip,.finder-notice,.finder-method,#finder-share-fallback label {
  font: 600 .88rem/1.4 system-ui,sans-serif;
}

.finder-crumb {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  text-decoration: none;
  color: #415349;
}

.finder-crumb:hover,.finder-card-links a:hover,.finder-planner-link:hover {
  text-decoration: underline;
}

.finder-start {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  margin-top: .6rem;
  isolation: isolate;
  border: 1px solid #c9bb9e;
  border-radius: 24px;
  overflow: hidden;
  background: #e5edda;
  min-height: 510px;
}

.finder-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px,4vw,65px) clamp(22px,4vw,62px) clamp(160px,15vw,234px);
}

.finder-intro h1,.finder-result-head h1 {
  font: 400 clamp(2.7rem,5.2vw,5.4rem)/1.01 var(--display);
  letter-spacing: -.065em;
  text-wrap: balance;
  max-width: 11em;
}

.finder-intro p,.finder-result-head p,.finder-budget>div:first-child>p {
  max-width: 41ch;
  font-size: clamp(1.04rem,1.5vw,1.34rem);
  line-height: 1.45;
  margin-top: 1rem;
}

.finder-portraits {
  position: absolute;
  bottom: -3%;
  left: 2%;
  right: 5%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 47%;
  pointer-events: none;
  z-index: -1;
}

.finder-portraits img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 70%;
  object-fit: contain;
  object-position: center bottom;
}

.finder-portraits img+img {
  height: 86%;
  margin-left: -16%;
}

.finder-paper {
  background: #fffbf1;
  border-left: 1px solid #c9bb9e;
  padding: clamp(26px,4vw,64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.finder-step {
  color: #4d5b4b;
}

.finder-progress {
  display: flex;
  gap: 5px;
  margin: .5rem 0 clamp(1.4rem,3vw,2.6rem);
}

.finder-progress i {
  height: 4px;
  width: 2.1rem;
  border-radius: 2px;
  background: #e2dac8;
}

.finder-progress i.active {
  background: #366649;
}

.finder-paper fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

.finder-paper legend,.finder-budget h2 {
  font: 400 clamp(1.75rem,3vw,2.8rem)/1.1 var(--display);
  letter-spacing: -.045em;
  padding: 0;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.finder-options {
  display: grid;
  gap: .55rem;
}

.finder-options label {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: .8rem;
  min-height: 64px;
  padding: .7rem .85rem;
  border: 1px solid #c6b99f;
  border-radius: 11px;
  background: #fffcf5;
  cursor: pointer;
}

.finder-options label:hover {
  background: #f3efdf;
}

.finder-options label:has(input:checked) {
  border-color: #386447;
  background: #e9efdF;
  box-shadow: inset 0 0 0 1px #386447;
}

.finder-options label:focus-within {
  outline: 3px solid #005b8d;
  outline-offset: 2px;
}

.finder-options input {
  margin: 0;
  width: 19px;
  height: 19px;
  accent-color: #325d43;
}

.finder-options input:focus-visible {
  outline: 0;
}

.finder-options strong,.finder-options small {
  display: block;
}

.finder-options strong {
  font: 600 1.04rem/1.25 system-ui,sans-serif;
}

.finder-options small {
  font-size: .97rem;
  line-height: 1.32;
  color: #3d5144;
  margin-top: .2rem;
}

.finder-controls,.finder-utilities {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.finder-controls {
  justify-content: space-between;
  margin-top: 1.4rem;
}

.finder-controls .finder-action {
  margin-left: auto;
}

.finder-action,.finder-secondary,.finder-text-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: .66rem 1.25rem;
}

.finder-action {
  background: var(--ink);
  color: #fff9e8;
}

.finder-action:hover {
  background: #28523b;
}

.finder-secondary {
  background: transparent;
  border: 1px solid #ac9a7a;
}

.finder-secondary:hover {
  background: #f3e5ca;
}

.finder-text-button {
  background: transparent;
  padding-inline: .15rem;
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.finder-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 .8rem;
}

.finder-result-head h1 {
  font-size: clamp(2.5rem,4.4vw,4.55rem);
  max-width: none;
}

.finder-result-head p {
  max-width: 62ch;
  font-size: 1.1rem;
}

.finder-utilities {
  flex-shrink: 0;
}

#finder-share-fallback {
  padding: .75rem;
  background: #fffbf1;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

#finder-share-fallback label {
  display: block;
}

#finder-share-url {
  width: 100%;
  padding: .5rem;
  border: 1px solid #a89e89;
  background: white;
  border-radius: 5px;
}

.finder-notice:not(:empty) {
  margin: .65rem 0;
}

.finder-matches {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2.2rem;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(.7rem,1.6vw,1.5rem);
  align-items: stretch;
}

.finder-match {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c9bb9e;
  border-radius: 17px;
  background: #fffaf0;
}

.finder-match>img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: 50% 16%;
  display: block;
  background: #ebe6d3;
}

.finder-match-body {
  padding: clamp(15px,1.7vw,26px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.finder-rank {
  color: #4b614e;
}

.finder-match h2 {
  font: 400 clamp(1.55rem,2.25vw,2.4rem)/1.08 var(--display);
  letter-spacing: -.045em;
  margin: .25rem 0 .9rem;
  overflow-wrap: anywhere;
}

.finder-reason {
  margin: .4rem 0;
  font-size: 1rem;
  line-height: 1.45;
}

.finder-reason strong {
  display: block;
  color: #34523f;
}

.finder-match details {
  margin: 1.1rem 0 0;
  border-block: 1px solid #d6c9af;
}

.finder-match summary {
  cursor: pointer;
  padding: .8rem 0;
  font: 600 .94rem/1.4 system-ui,sans-serif;
}

.finder-match summary:focus-visible {
  outline: 3px solid #005b8d;
  outline-offset: 1px;
}

.finder-match dl {
  margin: 0 0 .9rem;
}

.finder-match dt {
  margin: .55rem 0 .1rem;
  color: #455443;
}

.finder-match dd {
  margin: 0;
  font-size: .98rem;
}

.finder-card-links {
  display: grid;
  justify-items: start;
  gap: .25rem;
  margin-top: auto;
  padding-top: .7rem;
}

.finder-card-links a,.finder-planner-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #30513b;
}

.finder-budget {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: clamp(1.4rem,4vw,4rem);
  border: 1px solid #c6c0a4;
  border-radius: 18px;
  padding: clamp(20px,3.1vw,47px);
  background: #edf0de;
}

.finder-budget>div:first-child>p {
  font-size: 1.04rem;
  margin-top: .6rem;
  max-width: 45ch;
}

.finder-select-label {
  display: block;
  margin: 1.15rem 0 .15rem;
}

.finder-budget select {
  max-width: 100%;
  margin-top: 0;
  min-height: 40px;
  background-color: #fffaf0;
}

.finder-budget #finder-budget-tip {
  font-size: .96rem;
  line-height: 1.4;
  margin-top: .65rem;
}

.finder-cost-form {
  padding: clamp(14px,2vw,26px);
  border: 1px solid #c9c4a9;
  border-radius: 12px;
  background: #fffbf1;
}

.finder-currency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .6rem;
}

.finder-currency select {
  width: 6.25rem;
}

.finder-cost-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .7rem;
  margin: .85rem 0;
}

.finder-cost-fields label {
  display: block;
  font-weight: 500;
  font-size: .85rem;
}

.finder-cost-fields input {
  width: 100%;
  display: block;
  font: 400 1rem/1.2 system-ui,sans-serif;
  border: 1px solid #aa9e85;
  border-radius: 6px;
  background: #fffcf8;
  min-height: 40px;
  padding: .4rem .55rem;
  margin-top: .22rem;
}

.finder-cost-fields input[aria-invalid=true] {
  border: 2px solid #9c321b;
}

.finder-estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: .65rem;
}

.finder-estimate output {
  font: 400 1.6rem/1.2 var(--display);
  overflow-wrap: anywhere;
  min-width: 0;
  text-align: right;
}

#finder-budget-status {
  margin-top: .25rem;
  font-size: .93rem;
  color: #514d40;
}

.finder-method {
  max-width: 79ch;
  margin: 1.5rem 0 0;
  color: #4d564a;
  font-weight: 400;
}

@media(max-width:850px) {
  .finder-result-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .finder-shell {
    padding-inline: clamp(14px,3.5vw,28px);
  }
  .finder-paper,.finder-intro {
    padding-inline: clamp(18px,3vw,28px);
  }
  .finder-matches {
    gap: .6rem;
  }
  .finder-match-body {
    padding: 14px;
  }
}

@media(max-width:670px) {
  .finder-start {
    display: block;
    border-radius: 17px;
    min-height: 0;
  }
  .finder-intro {
    padding: 21px clamp(17px,4.5vw,28px);
    min-height: 142px;
  }
  .finder-intro h1 {
    font-size: clamp(2.15rem,7.7vw,3rem);
    max-width: 100%;
    text-wrap: balance;
  }
  .finder-intro p {
    font-size: 1rem;
    max-width: 73%;
    margin-top: .6rem;
  }
  .finder-portraits {
    left: auto;
    right: 2%;
    bottom: 5%;
    height: 49%;
    width: 27%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .finder-portraits img {
    position: static;
    max-width: none;
    width: 85%;
    height: auto;
  }
  .finder-portraits img+img {
    position: absolute;
    right: 0;
    bottom: 35%;
    width: 78%;
    height: auto;
    margin: 0;
    z-index: -1;
  }
  .finder-paper {
    border: 0;
    border-top: 1px solid #c9bb9e;
    padding: 21px clamp(17px,4.5vw,28px);
  }
  .finder-progress {
    margin-bottom: 1.15rem;
  }
  .finder-matches {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .finder-match-body {
    padding: 18px;
  }
  .finder-budget {
    grid-template-columns: 1fr;
  }
  .finder-result-head {
    margin-top: .5rem;
  }
  .finder-method {
    font-size: .83rem;
  }
}

@media(max-width:360px) {
  .finder-portraits {
    display: none;
  }
  .finder-intro h1,.finder-intro p {
    max-width: none;
  }
  .finder-action,.finder-secondary {
    padding-inline: .85rem;
  }
  .finder-cost-fields {
    grid-template-columns: 1fr;
  }
}

.finder-match>img[src$="/persian.webp"] {
  object-position: 50% 65%;
}

.finder-match>img[src$="/maine-coon.webp"] {
  object-position: 50% 38%;
}

.finder-match>img:is([src$="/golden-retriever.webp"],[src$="/great-dane.webp"],[src$="/whippet.webp"],[src$="/rottweiler.webp"],[src$="/oriental-shorthair.webp"]) {
  object-position: 50% 0;
}
