/* Pet Profile screen — Milestone F8.1 (Profile foundation).
   Deliberately mirrors home.css's Hero visual language (.home-hero and
   friends) rather than inventing a second style: full-bleed photo with a
   scrim, calm cards below, the same warm Willow palette/spacing/radius
   tokens. (F8.2/F8.3/F13 editing and photo styles follow further down.) */

.profile-screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: 0;
  /* Same full-bleed technique as .home-screen (see home.css) — the Hero
     photo reaches the edges of the mobile shell, and every other section
     re-adds its own horizontal inset via .profile-section's own padding
     (inherited from .card--standard). */
  margin-left: calc(var(--screen-padding) * -1);
  margin-right: calc(var(--screen-padding) * -1);
  background-color: var(--color-bg);
  padding-bottom: var(--space-2);
}

.profile-hero {
  position: relative;
  padding: 0;
  box-shadow: none;
}

/* Same banner size and fade as Today (tokens: --hero-height, --hero-fade). */
.profile-hero__image-wrap {
  display: block;
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  -webkit-mask-image: var(--hero-fade);
  mask-image: var(--hero-fade);
}

.profile-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.profile-hero__scrim {
  display: none;
}

.profile-hero__info {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: calc(var(--space-5) * -1);
  padding: 0 var(--screen-padding);
}

.profile-hero__name {
  font-family: var(--font-display);
  margin: 0;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--color-text);
}

.profile-hero__breed {
  margin: var(--space-0-5) 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Mirrors .home-hero__settings-btn exactly, positioned in the opposite
   (top-left) corner — same quiet translucent-circle treatment for a real
   control over the photo. */
.profile-hero__back {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: none;
  background-color: var(--overlay-on-photo);
  color: var(--color-on-photo);
  cursor: pointer;
}

.profile-hero__back svg {
  width: 20px;
  height: 20px;
}

/* Milestone F13 — the Edit profile entry point, moved off the Hero (it was
   an icon-only pencil in the photo's top-right corner) into the normal
   content flow directly beneath it, before the detail sections. A calm,
   labelled full-width secondary button (shared .btn--secondary styling)
   with a >=44px touch target; only rendered once a real pet record is
   loaded, so there is no disabled/fake state to style. */
.profile-actions {
  margin: 0 var(--screen-padding);
}

.profile-actions__edit {
  width: 100%;
  height: 44px;
}

.profile-actions__edit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Milestone F8.3 — a VISIBLE, labelled action (not merely an aria-label on
   the photo itself), so replacing the photo is discoverable without
   tapping the image — this milestone's explicit requirement. Sits inline
   in the info column under name/breed, over the same scrim that already
   gives white text enough contrast; same quiet translucent-fill language
   as .profile-hero__back, but a labelled pill rather than an
   icon-only circle, since "Change photo" needs to read as real text, not
   be inferred from an icon alone. 44px min-height matches this app's
   existing accessible-touch-target convention (components.css's .btn). */
.profile-hero__change-photo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  align-self: flex-start;
  margin-top: var(--space-2);
  padding: 0 var(--space-2);
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.profile-hero__change-photo svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Loading / unavailable states (no photo yet) ------------------------- */

.profile-hero--loading .profile-hero__back,
.profile-hero--unavailable .profile-hero__back {
  background-color: var(--overlay-on-photo-soft);
  color: var(--color-text);
}

.profile-hero__skeleton-block,
.profile-hero__skeleton-line {
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-small);
}

.profile-hero__skeleton-line {
  /* Must be block — as an inline <span> (the default), an explicit
     width/height is not respected at all (same trap .profile-hero__image-
     wrap's own default avoids by being block too). */
  display: block;
  height: 24px;
  width: 140px;
  margin: var(--space-2) var(--screen-padding) 0;
}

@media (prefers-reduced-motion: no-preference) {
  .profile-hero__skeleton-block,
  .profile-hero__skeleton-line {
    animation: profile-hero-skeleton-pulse 1.4s ease-in-out infinite;
  }
}

@keyframes profile-hero-skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.profile-hero--unavailable {
  padding-top: var(--screen-padding);
}

.profile-hero--unavailable .profile-hero__info {
  position: static;
  padding: var(--space-2) var(--screen-padding) var(--screen-padding);
  color: var(--color-text);
}

.profile-hero--unavailable .profile-hero__name {
  color: var(--color-text);
  text-shadow: none;
}

.profile-hero__error {
  color: var(--color-text-secondary);
  font-size: 13px;
  margin: var(--space-1) 0 0;
}

/* --- Content sections ------------------------------------------------------ */

.profile-section {
  margin: 0 var(--screen-padding);
}

.profile-section__title {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.profile-section__empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.profile-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.profile-facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}

.profile-facts__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.profile-facts__row dt {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.profile-facts__row dd {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

/* Milestone F8.2 — Health & care's free-text fields (allergies/conditions/
   careNotes) read as short prose, not a single-line stat — label stacks
   above value, left-aligned, rather than the baseline label/value row every
   other fact uses. */
.profile-facts__row--text {
  flex-direction: column;
  align-items: flex-start;
}

.profile-facts__row--text dd {
  text-align: left;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* --- Edit sheet (Milestone F8.2) ------------------------------------------
   .sheet/.sheet-overlay/.sheet__header/.sheet__close (components.css) carry
   the overlay/backdrop/close-button chrome and the sheet's own spacing/
   scroll behaviour already — only the form content below is Profile-
   specific. */

.profile-edit__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.profile-edit__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.profile-edit__section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.profile-edit__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
}

.profile-edit__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.profile-edit__weight-row {
  display: flex;
  gap: var(--space-2);
}

.profile-edit__field--weight {
  flex: 2;
}

.profile-edit__field--unit {
  flex: 1;
}

.profile-edit__error {
  margin: 0;
  color: var(--status-danger);
  font-size: 13px;
}

.profile-edit__actions {
  display: flex;
  gap: var(--space-2);
}

.profile-edit__actions .btn {
  flex: 1;
}

/* --- Change-photo preview sheet (Milestone F8.3) ---------------------------
   Reuses .sheet/.sheet-overlay/.sheet__header/.sheet__close and
   .profile-edit__actions' own Cancel/Confirm button row (same shared
   sheet primitive as the edit sheet above) — only the preview image and
   status line below are specific to this flow. */

.photo-preview__body {
  display: flex;
  justify-content: center;
}

/* Same 5/4 aspect-ratio + object-fit: cover as both Hero photos
   (.profile-hero__image-wrap/.home-hero__image-wrap) — an accurate
   preview of exactly how the photo will actually be cropped/presented
   once saved, not a generic "here's your file" thumbnail. */
.photo-preview__image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
  background-color: var(--color-surface-soft);
}

/* Carries "Uploading…"/"Saving…" while a save is in flight (see
   profile-view.js's setPhotoSheetPending) — no fake progress percentage,
   just which of the two sequential network steps is currently happening. */
.photo-preview__status {
  margin: var(--space-2) 0 0;
  min-height: 18px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
}

/* --- Weight history (Milestone F14.2) ---------------------------------------- */

.weight-history__latest {
  margin-bottom: var(--space-2);
}

.weight-history__value {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.1;
}

.weight-history__unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.weight-history__meta,
.weight-history__trend {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.weight-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-2);
}

.weight-chart__line {
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.weight-chart__point {
  fill: var(--color-card);
  stroke: var(--color-primary);
  stroke-width: 2;
}

.weight-history__list {
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.weight-history__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-2);
  align-items: baseline;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
}

.weight-history__row-date {
  color: var(--color-text-secondary);
}

.weight-history__row-value {
  font-weight: 600;
  color: var(--color-text);
}

.weight-history__row-change {
  min-width: 64px;
  text-align: right;
  font-size: 12px;
  color: var(--color-text-muted);
}

.weight-history__record {
  width: 100%;
}


/* --- Account (nav completion) -------------------------------------------------------
   Who is signed in and Sign out, at the foot of the Wilma screen. */

.profile-account {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-0-5);
  /* The profile screen is full-bleed, so like every other section the account
     block re-adds the screen's side inset. */
  margin: var(--space-4) var(--screen-padding) 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

.profile-account__heading {
  margin: 0 0 var(--space-0-5);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.profile-account__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--color-text);
}

.profile-account__email {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.profile-account__sign-out {
  margin-top: var(--space-1);
  border-radius: var(--radius-pill);
}


/* --- What you track (tracking choices) ----------------------------------------------
   One switch per daily category. A real button with role="switch" so it is
   keyboard and screen-reader operable; state is never colour alone (the thumb
   moves and aria-checked changes). */

.profile-tracking__helper {
  margin: 0 0 var(--space-1);
  font-size: 13px;
  color: var(--color-text-muted);
}

.profile-tracking__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-tracking__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  border-top: 1px solid var(--color-divider);
}

.profile-tracking__row:first-child {
  border-top: none;
}

.profile-tracking__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile-tracking__label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

.profile-tracking__hint {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background-color: var(--color-disabled);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard);
}

.switch--on {
  background-color: var(--color-primary-dark);
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-fast) var(--ease-standard);
}

.switch--on .switch__thumb {
  transform: translateX(20px);
}

.switch:disabled {
  opacity: 0.6;
  cursor: default;
}

.switch:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* --- Care plan editor and profile care/household sections (design v2) ----- */

.profile-care__edit {
  margin-top: var(--space-2);
  width: 100%;
}

.profile-household__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-household__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-divider);
}

.profile-household__row:last-child {
  border-bottom: none;
}

.profile-household__row--muted {
  color: var(--color-text-secondary);
}

.profile-household__you {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-dark);
  background-color: var(--color-primary-soft);
  border-radius: var(--radius-pill);
  padding: 2px var(--space-1);
}

.profile-hero__photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.profile-hero__photo-actions .profile-hero__change-photo {
  margin-top: 0;
}

.photo-preview__frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 8 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  background-color: var(--color-surface-soft);
}

.photo-preview__image--banner {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  pointer-events: none;
}

.photo-preview__marker {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid var(--color-on-photo);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.photo-preview__hint {
  margin: var(--space-1) 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.care-screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.care-header__back {
  align-self: flex-start;
  margin: 0 0 var(--space-1);
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.care-helper {
  margin: var(--space-0-5) 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.care-state {
  color: var(--color-text-secondary);
}

.care-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.care-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-card);
  background-color: var(--color-card);
  box-shadow: var(--shadow-card);
}

.care-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.care-field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.care-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.care-row {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  flex-wrap: wrap;
}

.care-field--unit {
  flex: 1;
  min-width: 110px;
}

.care-mode {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-soft);
}

.care-mode__option {
  min-height: 38px;
  padding: 0 var(--space-2);
  border: none;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--color-primary-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.care-mode__option--active {
  background-color: var(--color-card);
  box-shadow: var(--shadow-card);
}

.care-doses {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.care-dose {
  display: grid;
  grid-template-columns: 116px 84px minmax(0, 1fr);
  gap: var(--space-1) var(--space-1);
  align-items: end;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}

.care-dose:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Time and amount are the same compact, equal-height boxes (a native time
   input is otherwise taller and wider than a number input on iOS). */
.care-dose .input {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 var(--space-1);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

.care-dose input[type="time"] {
  text-align: left;
}

.care-field--meal {
  grid-column: 1 / -1;
  grid-row: 2;
}

.care-remove {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

.care-dose .care-field {
  min-width: 0;
}

.care-stop {
  align-self: flex-start;
  color: var(--status-danger);
}

.care-errors {
  padding: var(--space-2);
  border-radius: var(--radius-small);
  background-color: var(--color-surface-soft);
  color: var(--status-danger);
}

.care-errors p {
  margin: 0 0 var(--space-0-5);
  font-weight: 600;
}

.care-errors ul {
  margin: 0;
  padding-left: var(--space-3);
}

.care-save {
  width: 100%;
}


/* --- Appearance (design v2 D5) ------------------------------------------------ */

.profile-theme__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-theme__option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 52px;
  padding: var(--space-1) 0;
  border: none;
  border-bottom: 1px solid var(--color-divider);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
}

.profile-theme__list li:last-child .profile-theme__option {
  border-bottom: none;
}

.profile-theme__text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-theme__label {
  font-weight: 600;
}

.profile-theme__hint {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.profile-theme__check {
  width: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.profile-theme__option--selected .profile-theme__label {
  color: var(--color-primary-dark);
}

/* The swatch always shows that theme's own colours, whichever is active
   (--swatch-* are fixed previews defined in tokens.css). */
.profile-theme__swatch {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--sw-primary) 50%, var(--sw-bg) 50%);
}

.profile-theme__swatch--autumn { --sw-primary: var(--swatch-autumn-primary); --sw-bg: var(--swatch-autumn-bg); }
.profile-theme__swatch--spring { --sw-primary: var(--swatch-spring-primary); --sw-bg: var(--swatch-spring-bg); }
.profile-theme__swatch--summer { --sw-primary: var(--swatch-summer-primary); --sw-bg: var(--swatch-summer-bg); }
.profile-theme__swatch--winter { --sw-primary: var(--swatch-winter-primary); --sw-bg: var(--swatch-winter-bg); }
.profile-theme__swatch--automatic {
  background: conic-gradient(var(--swatch-autumn-primary) 0 25%, var(--swatch-spring-primary) 0 50%, var(--swatch-summer-primary) 0 75%, var(--swatch-winter-primary) 0);
}

.profile-care__subtitle {
  margin: var(--space-2) 0 var(--space-0-5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.profile-care__counted {
  font-size: 12px;
  color: var(--color-text-muted);
}

.profile-care__count {
  margin-top: var(--space-1);
}

.appointment-sheet__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.appointment-sheet__meta {
  margin: 0;
  color: var(--color-text-secondary);
}

.appointment-sheet__actions {
  justify-content: space-between;
}

.care-field--grow {
  flex: 1;
  min-width: 140px;
}


/* --- Household panel (step C) --------------------------------------------------- */

.household__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.household__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-divider);
}

.household__row:last-child {
  border-bottom: none;
}

.household__who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.household__name {
  font-weight: 600;
  color: var(--color-text);
}

.household__role {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.household__actions,
.household__row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.household__action--danger {
  color: var(--status-danger);
}

.household__invite-button {
  margin-top: var(--space-2);
  width: 100%;
}

.household__compose {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.household__lead {
  margin: 0;
  color: var(--color-text-secondary);
}

.household__roles {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.household__role-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-card);
  font: inherit;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
}

.household__role-option--selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-soft);
}

.household__role-label {
  font-weight: 600;
}

.household__role-hint {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.household__link {
  font-size: 13px;
}


/* --- Your dogs (multi-pet) -------------------------------------------------------- */

.dogs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dogs__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-divider);
}

.dogs__who {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.dogs__name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--color-text);
}

.dogs__meta {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.dogs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.dogs__add {
  margin-top: var(--space-2);
  width: 100%;
}

.dogs__archived {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
}

.care-row--flavour {
  align-items: center;
  flex-wrap: nowrap;
}

.care-row--flavour .input {
  flex: 1;
  min-width: 0;
}

.care-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.care-history__title {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}
