/* WaggleTails shelter Lost & Found owner pages (phase 2b, slice B): My Reports (MyLostFoundReportsPage.xaml) and the owner's
   report details (LostPetDetailsPage.xaml / FoundPetDetailsPage.xaml), the three-step Mark as Reunited sheet and the Post a
   Report chooser. Only the wt-lf-manage-* family plus the two Font Awesome glyphs no other sheet declares; colours come from
   wt-tokens.css. The status and type pills keep white text on a solid per-state fill in both themes, as the event pills do,
   so they take the theme-invariant --wt-fixed-* tokens (BUILD-B lists the MAUI values they stand in for). */

.fa-circle-xmark::before { content: "\f057"; }
.fa-play::before { content: "\f04b"; }

/* Page root - the subhead, the status line, then the cards or the details sections */
.wt-lf-manage-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wt-lf-manage-head__title {
  color: var(--wt-primary);
}

/* Intro card - MyLostFoundReportsPage.xaml:53-119 (mint gradient, 2 px teal hairline, radius 22, the four legend lines) */
.wt-lf-manage-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 2px solid var(--wt-selection-bg);
  border-radius: 22px;
  background: var(--wt-gradient-mint);
}
.wt-lf-manage-intro__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-lf-manage-intro__title i {
  font-size: 18px;
  color: var(--wt-primary);
}
.wt-lf-manage-intro__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text-body-soft);
}
.wt-lf-manage-intro__legend {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.wt-lf-manage-intro__legend strong {
  font-weight: 700;
}
.wt-lf-manage-intro__legend--active {
  color: var(--wt-pill-green-text);
}
.wt-lf-manage-intro__legend--reunited {
  color: var(--wt-fixed-teal);
}
.wt-lf-manage-intro__legend--expired {
  color: var(--wt-pill-amber-text);
}
.wt-lf-manage-intro__legend--declined {
  color: var(--wt-pill-red-deep);
}

/* Cards - MyLostFoundReportsPage.xaml:124-425 (radius 22, 96 px thumbnail, pills, 18 px name, 11 px meta; dimmed when inactive) */
.wt-lf-manage-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .wt-lf-manage-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}
@media (min-width: 1200px) {
  .wt-lf-manage-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.wt-lf-manage-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 22px;
  border-color: var(--wt-border);
  box-shadow: var(--wt-shadow-card);
}
.wt-lf-manage-card--inactive {
  opacity: .75;
}
.wt-lf-manage-card__top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
}
.wt-lf-manage-card__thumb {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--wt-surface-muted);
}
.wt-lf-manage-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-lf-manage-card__thumb-glyph {
  font-size: 30px;
  line-height: 1;
}
.wt-lf-manage-card__thumb-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--wt-scrim);
  font-size: 26px;
  line-height: 1;
}
.wt-lf-manage-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wt-lf-manage-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.wt-lf-manage-card__name {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-lf-manage-card__breed {
  font-size: 13px;
  color: var(--wt-text-body-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-lf-manage-card__line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  color: var(--wt-text-secondary);
}
.wt-lf-manage-card__line i {
  font-size: 11px;
}
.wt-lf-manage-card__line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-lf-manage-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11px;
  color: var(--wt-text-secondary);
}
.wt-lf-manage-card__meta i {
  font-size: 11px;
}
.wt-lf-manage-card__row {
  display: grid;
  gap: 10px;
  align-items: center;
}
.wt-lf-manage-card__row--active {
  grid-template-columns: 1fr 48px 70px;
}
.wt-lf-manage-card__row--expired {
  grid-template-columns: 1fr 48px;
}
.wt-lf-manage-card__row form {
  margin: 0;
  min-width: 0;
}
.wt-lf-manage-card__action {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 22px;
  font-size: 12px;
}
.wt-lf-manage-card__edit {
  font-size: 13px;
  color: var(--wt-text-body);
}
.wt-lf-manage-card__eye {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  border-radius: 22px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-secondary);
  font-size: 18px;
  text-decoration: none;
}

/* Status and type pills - MyLostFoundReportItem (radius 12, 8/4 padding, 11 px semibold) and the 20 px hero pill of the details
   page; white on the state's fixed fill in both themes */
.wt-lf-manage-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
}
.wt-lf-manage-pill--active {
  background: var(--wt-fixed-green);
}
.wt-lf-manage-pill--reunited {
  background: var(--wt-fixed-teal);
}
.wt-lf-manage-pill--expired {
  background: var(--wt-fixed-gold);
}
.wt-lf-manage-pill--declined {
  background: var(--wt-fixed-red);
}
.wt-lf-manage-pill--type-lost {
  background: var(--wt-inbox-disc-orange);
}
.wt-lf-manage-pill--type-found {
  background: var(--wt-fixed-blue);
}

/* State banners - the reunited teal box (XAML:281-302), the amber expired box (:346-369), the red declined box with its own
   eye (:377-423); the details page's owner banner (LostPetDetailsPage.xaml:299-309) and archived box (:352-374) */
.wt-lf-manage-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.wt-lf-manage-banner > i {
  margin-top: 1px;
  font-size: 16px;
}
.wt-lf-manage-banner--reunited {
  background: var(--wt-soft-teal-bg);
  color: var(--wt-fixed-teal);
}
.wt-lf-manage-banner--expired {
  background: var(--wt-warning-bg);
  color: var(--wt-pill-amber-text);
}
.wt-lf-manage-banner--declined {
  grid-template-columns: auto 1fr 32px;
  align-items: center;
  background: var(--wt-pill-red-bg);
  color: var(--wt-pill-red-deep);
}
.wt-lf-manage-banner__eye {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--wt-card);
  color: var(--wt-pill-red-deep);
  font-size: 14px;
  text-decoration: none;
}
.wt-lf-manage-banner--owner {
  display: block;
  padding: 14px;
  border: 1px solid var(--wt-selection-bg);
  border-radius: 16px;
  background: var(--wt-soft-teal-bg);
  font-weight: 400;
  font-size: 13px;
  text-align: center;
  color: var(--wt-primary-pressed);
}
.wt-lf-manage-banner--archived {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--wt-selection-bg);
  border-radius: 16px;
  background: var(--wt-soft-teal-bg);
  text-align: center;
}
.wt-lf-manage-banner--stacked {
  grid-template-columns: 1fr;
  gap: 10px;
}
.wt-lf-manage-banner__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--wt-primary-pressed);
}
.wt-lf-manage-banner__line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  font-weight: 400;
}
.wt-lf-manage-banner--expired .wt-lf-manage-banner__line {
  font-weight: 600;
}
.wt-lf-manage-banner--archived .wt-lf-manage-banner__line {
  color: var(--wt-fixed-teal);
}
.wt-lf-manage-banner__line i {
  margin-top: 1px;
  font-size: 16px;
}
.wt-lf-manage-banner__action {
  min-height: 44px;
  border-radius: 24px;
  font-size: 13px;
}
.wt-lf-manage-banner form {
  margin: 0;
}

/* Empty state - MyLostFoundReportsPage.xaml:430-457 (52 px glyph, 20 px title, the teal pill) and the Create Report chooser */
.wt-lf-manage-empty {
  padding: 28px;
}
.wt-lf-manage-empty__glyph {
  font-size: 52px;
  line-height: 1.1;
}
.wt-lf-manage-empty__title {
  font-weight: 600;
  font-size: 20px;
  color: var(--wt-text);
}
.wt-lf-manage-empty__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.wt-lf-manage-chooser {
  width: min(100% - 32px, 360px);
}
.wt-lf-manage-chooser__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.wt-lf-manage-chooser__title {
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  color: var(--wt-text);
}

/* Mark as Reunited sheet - MyLostFoundReportsPage.xaml:461-624 (white card radius 26, 20 px padding, the three steps) */
.wt-lf-manage-sheet {
  width: min(100% - 32px, 420px);
  border-radius: 26px;
}
.wt-lf-manage-sheet__form {
  margin: 0;
  padding: 20px;
}
.wt-lf-manage-sheet__step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wt-lf-manage-sheet__step--done {
  align-items: center;
  text-align: center;
}
.wt-lf-manage-sheet__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.wt-lf-manage-sheet__head:has(.wt-lf-manage-sheet__back) {
  grid-template-columns: auto 1fr;
}
.wt-lf-manage-sheet__heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-lf-manage-sheet__title {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-lf-manage-sheet__sub {
  font-size: 13px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-lf-manage-sheet__close {
  background: transparent;
  color: var(--wt-text-secondary);
  font-size: 22px;
}
.wt-lf-manage-sheet__back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--wt-text-secondary);
  font-size: 22px;
  cursor: pointer;
}
.wt-lf-manage-sheet__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--wt-soft-teal-bg), var(--wt-soft-gold-bg));
  text-align: center;
}
.wt-lf-manage-sheet__hero-glyph {
  font-size: 46px;
  line-height: 1.1;
}
.wt-lf-manage-sheet__hero-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--wt-fixed-teal);
  overflow-wrap: anywhere;
}
.wt-lf-manage-sheet__hero-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text-body-soft);
}
.wt-lf-manage-sheet__note {
  padding: 14px;
  border: 1px solid var(--wt-gold-hairline);
  border-radius: 18px;
  background: var(--wt-soft-gold-bg);
  font-size: 12px;
  line-height: 1.45;
  color: var(--wt-pill-amber-text);
}
.wt-lf-manage-sheet__quiet {
  background: transparent;
  color: var(--wt-text-secondary);
}
.wt-lf-manage-sheet__label {
  font-weight: 600;
  font-size: 13px;
  color: var(--wt-text-body);
}
.wt-lf-manage-sheet__file {
  display: none;
}
.wt-lf-manage-sheet__message {
  min-height: 150px;
  padding: 12px;
  border-radius: 16px;
  background: var(--wt-surface-subtle);
  font-size: 14px;
}
.wt-lf-manage-sheet__hints {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 11px;
}
.wt-lf-manage-sheet__hint {
  color: var(--wt-fixed-teal);
}
.wt-lf-manage-sheet__counter {
  color: var(--wt-text-secondary);
}
.wt-lf-manage-sheet__done-glyph {
  font-size: 56px;
  line-height: 1.1;
}
.wt-lf-manage-sheet__done-title {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--wt-fixed-teal);
  overflow-wrap: anywhere;
}
.wt-lf-manage-sheet__done-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text-body-soft);
}
.wt-lf-manage-sheet__done-note {
  font-size: 12px;
  color: var(--wt-fixed-teal);
}
/* The sheet's no-script arm under each Mark as Reunited opener: the message and "Post to Community" posted inline, since the
   dialog opens only through lf-manage.js */
.wt-lf-manage-noscript {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

/* Photo tiles - XAML:536-587 (two equal 112 px tiles: the current photo with its "Current" chip, the dashed "Add new photo") */
.wt-lf-manage-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wt-lf-manage-tile {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  overflow: hidden;
  border: 2px solid var(--wt-border);
  border-radius: 18px;
  background: var(--wt-surface-subtle);
  font-family: var(--wt-font);
  color: var(--wt-text-muted);
  cursor: pointer;
}
.wt-lf-manage-tile--new {
  border-style: dashed;
  border-color: var(--wt-outline);
}
.wt-lf-manage-tile.is-selected {
  border-color: var(--wt-primary);
  background: var(--wt-selection-bg);
  color: var(--wt-selection-text);
}
.wt-lf-manage-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-lf-manage-tile__glyph {
  font-size: 28px;
  line-height: 1;
}
.wt-lf-manage-tile__chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--wt-fixed-teal);
  opacity: .8;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
}
.wt-lf-manage-tile i {
  font-size: 24px;
  color: var(--wt-primary);
}
.wt-lf-manage-tile__text {
  font-weight: 600;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.wt-lf-manage-tile__sub {
  font-size: 11px;
  color: var(--wt-text-muted);
}

/* Details - LostPetDetailsPage.xaml (300 px hero, radius-28 cards with 20 px padding, 24 px hero title, the fact rows) */
.wt-lf-manage-hero__link {
  display: block;
  width: 100%;
  height: 100%;
}
.wt-lf-manage-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--wt-radius-card);
  background: var(--wt-surface-muted);
}
.wt-lf-manage-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-lf-manage-hero__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-lf-manage-hero__placeholder i {
  font-size: 42px;
  color: var(--wt-text-muted);
}
.wt-lf-manage-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: var(--wt-scrim);
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}
.wt-lf-manage-hero__pill {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}
/* The hero's type pill takes the details pages' StatusLost / StatusFound (LostPetDetailsPage.xaml:105, FoundPetDetailsPage.xaml:105),
   not the card badge's orange / blue */
.wt-lf-manage-hero__pill.wt-lf-manage-pill--type-lost {
  background: var(--wt-fixed-red);
}
.wt-lf-manage-hero__pill.wt-lf-manage-pill--type-found {
  background: var(--wt-fixed-green);
}
.wt-lf-manage-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-color: var(--wt-surface-muted);
  border-radius: 28px;
}
.wt-lf-manage-section__identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wt-lf-manage-section__hero-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-lf-manage-section__line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-lf-manage-section__emoji {
  font-size: 18px;
  line-height: 1;
}
.wt-lf-manage-section__title {
  font-weight: 700;
  font-size: 18px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-lf-manage-section__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wt-text-secondary);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wt-lf-manage-section__caption {
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: var(--wt-text-muted);
}
.wt-lf-manage-section__edit {
  min-height: 48px;
  font-size: 14px;
  color: var(--wt-text-body-soft);
}
.wt-lf-manage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.wt-lf-manage-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.wt-lf-manage-chip--teal {
  background: var(--wt-soft-teal-bg);
  color: var(--wt-fixed-teal);
}
.wt-lf-manage-chip--green {
  background: var(--wt-pill-green-bg);
  color: var(--wt-pill-green-text);
}
.wt-lf-manage-chip--red {
  background: var(--wt-pill-red-bg);
  color: var(--wt-pill-red-deep);
}
.wt-lf-manage-chip--amber {
  background: var(--wt-warning-bg);
  color: var(--wt-pill-amber-text);
}
.wt-lf-manage-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wt-lf-manage-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.wt-lf-manage-fact > i {
  margin-top: 2px;
  width: 16px;
  font-size: 15px;
  text-align: center;
  color: var(--wt-primary);
}
.wt-lf-manage-fact__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-lf-manage-fact__label {
  font-size: 11px;
  color: var(--wt-text-muted);
}
.wt-lf-manage-fact__value {
  font-size: 14px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-lf-manage-fact__sub {
  font-size: 11px;
  color: var(--wt-text-secondary);
}
.wt-lf-manage-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: var(--wt-surface-subtle);
}
.wt-lf-manage-contact__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--wt-text);
}
.wt-lf-manage-contact__line {
  font-size: 13px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-lf-manage-poster {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}
.wt-lf-manage-poster__avatar {
  width: 56px;
  height: 56px;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: var(--wt-surface-muted);
}
.wt-lf-manage-poster__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-lf-manage-poster__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-lf-manage-poster__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-lf-manage-poster__role {
  font-size: 13px;
  color: var(--wt-text-muted);
}
.wt-lf-manage-map {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--wt-surface-muted);
}
.wt-lf-manage-map i {
  color: var(--wt-primary);
}
.wt-lf-manage-map__text {
  min-width: 0;
  font-size: 14px;
  color: var(--wt-text-body);
  overflow-wrap: anywhere;
}
