:root {
  --petles-plum: #3b1238;
  --petles-pink: #ee3ca8;
  --petles-soft-pink: #fff1fa;
  --petles-border: #f7cce8;
  --petles-focus: #522dff;
}

.petles-care { color: var(--petles-plum); container-type: inline-size; }
.petles-care__card {
  background: linear-gradient(145deg, #fff 0%, var(--petles-soft-pink) 100%);
  border: 2px solid var(--petles-border);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgb(86 24 74 / 13%);
  padding: clamp(16px, 4vw, 28px);
}
.petles-care__header { display: flex; align-items: center; gap: 14px; }
.petles-care--profile .petles-care__card { padding: clamp(14px, 3.5vw, 22px); }
.petles-care--profile .petles-care__header { align-items: center; display: grid; grid-template-columns: 116px minmax(0, 1fr); }
.petles-care__identity { min-width: 0; }
.petles-care__header h2 { font-size: clamp(1.35rem, 5vw, 2rem); margin: 2px 0; }
.petles-care__header a { color: #8c286c; font-weight: 700; }
.petles-care__eyebrow { color: #a52d7d; font-size: .78rem; font-weight: 850; letter-spacing: .11em; margin: 0; text-transform: uppercase; }
.petles-care__portrait { border: 4px solid #fff; border-radius: 50%; box-shadow: 0 4px 18px rgb(73 18 64 / 18%); flex: 0 0 76px; height: 76px; overflow: hidden; }
.petles-care__photo { height: 100%; object-fit: cover; width: 100%; }
.petles-care__fallback { align-items: center; background: #ffe3f4; display: flex; font-size: 2rem; height: 100%; justify-content: center; }
.petles-care__ring { align-items: center; aspect-ratio: 1; background: conic-gradient(#46dc8a calc(var(--care-power) * 1%), #efdbe8 0); border: 5px solid #fff; border-radius: 50%; box-shadow: 0 5px 18px rgb(71 25 63 / 18%); box-sizing: border-box; display: flex; justify-content: center; padding: 8px; position: relative; width: 108px; }
.petles-care__ring::before { border: 3px solid #77c9ee; border-radius: inherit; content: ""; inset: 4px; pointer-events: none; position: absolute; }
.petles-care__ring-core { align-items: center; background: #fff5fb; border: 4px solid #fff; border-radius: 50%; display: flex; height: 78px; justify-content: center; overflow: hidden; width: 78px; }
.petles-care__ring-core img { height: 100%; object-fit: cover; width: 100%; }
.petles-care__ring-paw { font-size: 2.1rem; }
.petles-care__ring > strong { background: #3b1238; border: 3px solid #fff; border-radius: 999px; bottom: -7px; color: #fff; font-size: .86rem; line-height: 1; min-width: 34px; padding: 6px 7px; position: absolute; text-align: center; }
.petles-care__streak { color: #77506f; font-size: .85rem; font-weight: 750; margin: 4px 0 8px; }
.petles-care__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.petles-care__quick span { background: #fff; border: 1px solid #f1d4e6; border-radius: 999px; font-size: .76rem; padding: 5px 8px; white-space: nowrap; }
.petles-care__post { margin: 18px calc(-1 * clamp(16px, 4vw, 28px)) 18px; }
.petles-care__gallery { display: flex; gap: 8px; list-style: none; margin: 0; overflow-x: auto; padding: 0; scroll-snap-type: x mandatory; }
.petles-care__gallery li { flex: 0 0 100%; scroll-snap-align: start; }
.petles-care__post img { aspect-ratio: 4 / 3; display: block; max-height: 620px; object-fit: cover; width: 100%; }
.petles-care__post figcaption { background: #fff3fb; font-size: .95rem; font-weight: 750; padding: 14px clamp(16px, 4vw, 28px); }
.petles-care__post--compact { margin: 14px 0 12px; }
.petles-care__post--compact .petles-care__gallery { border-radius: 16px; }
.petles-care__post--compact img { aspect-ratio: 16 / 7; max-height: 220px; }
.petles-care__post--compact figcaption { background: transparent; font-size: .82rem; font-weight: 650; overflow: hidden; padding: 8px 2px 0; text-overflow: ellipsis; white-space: nowrap; }
.petles-care__meters { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 22px 0; padding: 0; }
.petles-meter { align-items: center; display: flex; gap: 9px; min-width: 0; }
.petles-meter__icon { align-items: center; background: #fff; border-radius: 50%; display: flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.petles-meter__body { flex: 1; min-width: 0; }
.petles-meter__row { display: flex; font-size: .85rem; font-weight: 800; justify-content: space-between; }
.petles-meter__track { background: #eee7ed; border-radius: 999px; display: block; height: 9px; margin-top: 5px; overflow: hidden; }
.petles-meter__fill { background: linear-gradient(90deg, #ee3ca8, #9e6dff); border-radius: inherit; display: block; height: 100%; width: var(--meter-value); }
.petles-meter--water .petles-meter__fill { background: linear-gradient(90deg, #30b7e8, #3478e5); }
.petles-meter--food .petles-meter__fill,
.petles-meter--bond .petles-meter__fill { background: linear-gradient(90deg, #48d78a, #79dfaa); }
.petles-meter--energy .petles-meter__fill { background: linear-gradient(90deg, #ffd13d, #ff9d31); }
.petles-care__treats { align-items: center; background: #fff6dc; border-radius: 16px; display: grid; gap: 6px 10px; grid-template-columns: auto 1fr auto; margin: -4px 0 16px; padding: 12px; }
.petles-care__treats strong { color: #8d285f; }
.petles-care__treat-track { background: #eadde6; border-radius: 999px; display: block; grid-column: 2 / 4; height: 9px; overflow: hidden; }
.petles-care__treat-track > span { background: linear-gradient(90deg, #ffca44, #ed5ba9); border-radius: inherit; display: block; height: 100%; width: var(--meter-value); }
.petles-care__details { border: 1px solid var(--petles-border); border-radius: 16px; margin-top: 12px; overflow: hidden; }
.petles-care__details summary { align-items: center; cursor: pointer; display: flex; font-weight: 850; justify-content: space-between; list-style: none; min-height: 48px; padding: 8px 14px; }
.petles-care__details summary::-webkit-details-marker { display: none; }
.petles-care__details summary::after { content: "+"; font-size: 1.35rem; margin-left: 8px; }
.petles-care__details[open] summary::after { content: "−"; }
.petles-care__details summary small { color: #805b76; font-weight: 650; margin-left: auto; }
.petles-care__details-body { border-top: 1px solid var(--petles-border); padding: 14px; }
.petles-care__details-body .petles-care__meters { margin: 0 0 16px; }
.petles-care__details-body .petles-care__treats { margin-bottom: 0; }
.petles-care__power { align-items: baseline; background: linear-gradient(120deg, #fff7d5, #ffe6f5); border-radius: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 15px; }
.petles-care__power span { font-size: 1.2rem; font-weight: 900; }
.petles-care__power strong { color: #d3137b; font-size: 2rem; }
.petles-care__power small { flex-basis: 100%; text-align: center; }
.petles-care__notice { color: #77506f; font-size: .78rem; margin: 12px 0 0; text-align: center; }
.petles-care__more { display: block; font-weight: 800; margin-top: 12px; text-align: center; }
.petles-care__actions { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.petles-care__actions button,
.petles-care__actions a { align-items: center; background: #fff; border: 1px solid var(--petles-border); border-radius: 14px; color: var(--petles-plum); display: flex; font: inherit; font-weight: 850; justify-content: center; min-height: 46px; padding: 8px; text-decoration: none; }
.petles-care__actions button:first-child { background: var(--petles-pink); color: #fff; }
.petles-care__actions [aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
.petles-care__share { background: linear-gradient(#f25eb5, #b01678); border: 0; border-radius: 22px; box-shadow: 0 10px 0 #751052; color: #fff; cursor: pointer; display: block; font: inherit; font-size: 1.12rem; font-weight: 900; margin-top: 22px; min-height: 58px; padding: 12px; width: 100%; }
.petles-care__share:disabled { cursor: wait; opacity: .75; }
.petles-care__share-help { color: #77506f; display: block; margin-top: 14px; text-align: center; }
.petles-care--profile .petles-care__share { margin-top: 14px; }
.petles-care--profile .petles-care__share-help { font-size: .78rem; margin-top: 11px; }
.petles-care :focus-visible { outline: 3px solid var(--petles-focus); outline-offset: 3px; }
@media (max-width: 420px) {
  .petles-care__meters { grid-template-columns: 1fr; }
  .petles-care__actions { grid-template-columns: 1fr; }
  .petles-care--profile .petles-care__header { grid-template-columns: 104px minmax(0, 1fr); }
  .petles-care__ring { width: 94px; }
  .petles-care__ring-core { height: 70px; width: 70px; }
}
@media (prefers-reduced-motion: no-preference) {
  .petles-meter__fill { transition: width .35s ease; }
}
