/* WaggleTails shelter pages (phase 2b, slice C): the Lost & Found inbox, the "Incoming Message" page, the owner's chat and
   the dashboard's "Create New Post" chooser. Only what the shared sheets do not already have; colours come from
   wt-tokens.css. Families: .wt-lf-inbox-*, .wt-lf-chat-*. Sources: LostFoundInboxPage.xaml, LostFoundInteractionDetailsPage.xaml,
   MessageConversationPage.xaml (Lost & Found mode), ShelterDashboardPageViewModel.CreatePost. */

/* Type pill - LostFoundInboxItem.TypeBadgeBackground / TypeBadgeTextColor (padding 8x3, radius 10, 11 bold): teal / amber / blue.
   The amber fill is the app's #FEF3C7 (the warning-bg token); the blue text takes the nearest pill-blue token. */
.wt-lf-inbox-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
.wt-lf-inbox-pill--teal {
  background: var(--wt-pill-teal-bg);
  color: var(--wt-pill-teal-text);
}
.wt-lf-inbox-pill--amber {
  background: var(--wt-warning-bg);
  color: var(--wt-pill-amber-text);
}
.wt-lf-inbox-pill--blue {
  background: var(--wt-pill-blue-bg);
  color: var(--wt-pill-blue-text);
}

/* Inbox - LostFoundInboxPage.xaml: the failure line, the rows, the "📭 / No messages yet" block. */
.wt-lf-inbox-error {
  font-size: 13px;
  color: var(--wt-error);
  overflow-wrap: anywhere;
}
.wt-lf-inbox-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 16px;
}
/* LostFoundInbox.tsx:464-468 as the app draws it: a teal hairline at 30 % while new, 40 % opacity once dismissed. */
.wt-lf-inbox-row.is-new {
  border-color: color-mix(in srgb, var(--wt-primary) 30%, transparent);
}
.wt-lf-inbox-row.is-dismissed {
  opacity: .4;
}
.wt-lf-inbox-row__media {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 12px;
  background: var(--wt-surface-muted);
  color: var(--wt-soft-teal);
  font-size: 22px;
}
.wt-lf-inbox-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
/* The 12 px teal dot with a 2 px card-coloured ring at the photo's top-right corner. */
.wt-lf-inbox-row__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: var(--wt-primary);
  box-shadow: 0 0 0 2px var(--wt-card);
}
.wt-lf-inbox-row__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-lf-inbox-row__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 2px;
}
.wt-lf-inbox-row__tag {
  font-weight: 700;
  font-size: 11px;
}
.wt-lf-inbox-row__tag--new {
  color: var(--wt-primary);
}
.wt-lf-inbox-row__tag--dismissed {
  color: var(--wt-text-muted);
}
.wt-lf-inbox-row__name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--wt-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The whole card is the tap target (the app's card tap): the name link stretches over it. */
.wt-lf-inbox-row__open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.wt-lf-inbox-row__preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-lf-inbox-row__time {
  margin-top: 2px;
  font-size: 11px;
  color: var(--wt-text-muted);
}
.wt-lf-inbox-row__chevron {
  margin-top: 4px;
  font-size: 12px;
  color: var(--wt-outline);
}
.wt-lf-inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 16px;
  text-align: center;
}
.wt-lf-inbox-empty__glyph {
  font-size: 44px;
  line-height: 1;
}
.wt-lf-inbox-empty__text {
  font-size: 13px;
  color: var(--wt-text-secondary);
}

/* "Incoming Message" - LostFoundInteractionDetailsPage.xaml: the pill under the title, the pet card, the claim warning,
   the details card, the owner-info tip, the dismissed note, the actions, the declined card. */
.wt-lf-inbox-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.wt-lf-inbox-pet {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}
.wt-lf-inbox-pet__photo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: var(--wt-surface-muted);
  color: var(--wt-soft-teal);
  font-size: 24px;
}
.wt-lf-inbox-pet__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-lf-inbox-pet__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-lf-inbox-pet__label {
  font-size: 12px;
  color: var(--wt-text-muted);
}
.wt-lf-inbox-pet__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-lf-inbox-pet__breed {
  font-size: 14px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
/* The claim warning: the app's #FFF9E6 fill with a 33 % gold stroke, a gold shield and amber text (the nearest tokens). */
.wt-lf-inbox-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--wt-gold-hairline);
  border-radius: 16px;
  background: var(--wt-soft-gold-bg);
}
.wt-lf-inbox-warning i {
  margin-top: 2px;
  font-size: 18px;
  color: var(--wt-secondary-pressed);
}
.wt-lf-inbox-warning p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--wt-pill-amber-text);
  overflow-wrap: anywhere;
}
.wt-lf-inbox-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}
.wt-lf-inbox-details__heading {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--wt-text-muted);
}
.wt-lf-inbox-fact {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.wt-lf-inbox-fact__disc {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 14px;
}
.wt-lf-inbox-fact__disc--red {
  background: var(--wt-soft-danger-bg);
  color: var(--wt-danger-accent);
}
.wt-lf-inbox-fact__disc--orange {
  background: var(--wt-soft-warning-bg);
  color: var(--wt-inbox-disc-orange);
}
/* LostFoundInteractionDetailsPage.xaml:96 - the "When" glyph is Light=#F97316, Dark=SoftGoldAccentColorDark (#FACC15): the
   orange token in light, the gold secondary in dark. */
[data-theme=dark] .wt-lf-inbox-fact__disc--orange {
  color: var(--wt-secondary);
}
.wt-lf-inbox-fact__disc--blue {
  background: var(--wt-soft-blue-bg);
  color: var(--wt-soft-blue);
}
.wt-lf-inbox-fact__disc--teal {
  background: var(--wt-soft-teal-bg);
  color: var(--wt-primary);
}
.wt-lf-inbox-fact__disc--purple {
  background: var(--wt-soft-purple-bg);
  color: var(--wt-soft-purple);
}
.wt-lf-inbox-fact__text,
.wt-lf-inbox-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wt-lf-inbox-fact__label,
.wt-lf-inbox-field__label {
  font-size: 11px;
  color: var(--wt-text-muted);
}
.wt-lf-inbox-fact__value,
.wt-lf-inbox-field__value {
  font-size: 14px;
  line-height: 1.45;
  color: var(--wt-text-body-strong);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wt-lf-inbox-fact__value--strong,
.wt-lf-inbox-field__value--strong {
  font-weight: 700;
}
/* The tipster's pin: the app's map card as a text block with the map link (the events page's shape). */
.wt-lf-inbox-map {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--wt-surface-muted);
}
.wt-lf-inbox-map i {
  color: var(--wt-primary);
}
.wt-lf-inbox-map__text {
  min-width: 0;
  font-size: 14px;
  color: var(--wt-text-body);
  overflow-wrap: anywhere;
}
/* "Photo attached": the 160 x 100 thumbnail with a 1 px border, radius 12, opening the image. */
.wt-lf-inbox-attachment {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 100px;
  overflow: hidden;
  border: 1px solid var(--wt-border);
  border-radius: 12px;
  background: var(--wt-card);
}
.wt-lf-inbox-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-lf-inbox-received {
  font-size: 11px;
  color: var(--wt-text-muted);
}
.wt-lf-inbox-tip {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--wt-primary) 20%, transparent);
  border-radius: 16px;
  background: var(--wt-soft-teal-bg);
}
/* LostFoundInteractionDetailsPage.xaml:178 - Light=#0B7F75, Dark=SoftTealAccentColorDark (#5EEAD4): the soft-teal token
   (light #0D9488 is as near as any; dark is the app's own value and keeps AA on the dark teal fill). */
.wt-lf-inbox-tip p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--wt-soft-teal);
  overflow-wrap: anywhere;
}
.wt-lf-inbox-dismissed {
  font-size: 13px;
  text-align: center;
  color: var(--wt-text-muted);
}
.wt-lf-inbox-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wt-lf-inbox-actions form {
  margin: 0;
}
.wt-lf-inbox-actions .wt-btn--muted {
  min-height: 50px;
  border-radius: 25px;
  font-weight: 700;
}
/* The app's IsEnabled = CanOpenChat on the chat button, the one gated control on the page. */
.wt-lf-inbox-action[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}
.wt-lf-inbox-footnote {
  font-size: 11px;
  text-align: center;
  color: var(--wt-text-muted);
  overflow-wrap: anywhere;
}
.wt-lf-inbox-declined {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  border-radius: var(--wt-radius-card);
  background: var(--wt-surface-subtle);
  text-align: center;
}
.wt-lf-inbox-declined__glyph {
  font-size: 38px;
  line-height: 1;
}
.wt-lf-inbox-declined__text {
  font-size: 14px;
  color: var(--wt-text-body-soft);
  overflow-wrap: anywhere;
}

/* Dashboard "Create New Post" chooser - ShelterDashboardPageViewModel.CreatePost (the app's action sheet): the inline
   links without script, the dialog's three options and Cancel with it. */
.wt-lf-inbox-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
}
.wt-lf-inbox-create__open {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--wt-font);
  font-weight: 600;
  font-size: 16px;
  color: var(--wt-primary);
  cursor: pointer;
}
.wt-lf-inbox-create__inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.wt-lf-inbox-create__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Chat - MessageConversationPage.xaml in Lost & Found mode: the person header, the context card, the system pill. */
.wt-lf-chat-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-body-soft);
  font-size: 16px;
}
.wt-lf-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-lf-chat-context {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--wt-primary) 20%, transparent);
  border-radius: 16px;
  background: var(--wt-soft-teal-bg);
}
.wt-lf-chat-context__pet {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.wt-lf-chat-context__photo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--wt-surface-muted);
  color: var(--wt-soft-teal);
  font-size: 20px;
}
.wt-lf-chat-context__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-lf-chat-context__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-lf-chat-context__label {
  font-size: 12px;
  color: var(--wt-text-secondary);
}
.wt-lf-chat-context__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-lf-chat-context__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  color: var(--wt-text-body-soft);
  overflow-wrap: anywhere;
}
.wt-lf-chat-context__glyph {
  margin-top: 2px;
  font-size: 12px;
}
.wt-lf-chat-context__glyph--red {
  color: var(--wt-danger-accent);
}
.wt-lf-chat-context__glyph--orange {
  color: var(--wt-inbox-disc-orange);
}
.wt-lf-chat-context__handover {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--wt-pill-green-bg);
  font-size: 12px;
  line-height: 1.5;
  color: var(--wt-pill-green-text);
  overflow-wrap: anywhere;
}
.wt-lf-chat-system {
  align-self: center;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-surface-muted);
  font-size: 12px;
  text-align: center;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
/* "This person is no longer on Waggle Tails..." - the app's amber notice above the closed composer. */
.wt-lf-chat-unavailable {
  padding: 8px 12px;
  border: 1px solid var(--wt-gold-hairline);
  border-radius: 14px;
  background: var(--wt-soft-warning-bg);
  font-size: 13px;
  color: var(--wt-pill-amber-text);
  overflow-wrap: anywhere;
}
.wt-lf-chat-status:empty {
  display: none;
}
/* The composer once the other person is gone - the app's IsEnabled = IsOtherPetAvailable on the editor and the send
   button: drawn, dimmed, inert (no form behind it). */
.wt-lf-chat-composer--closed {
  opacity: .55;
  pointer-events: none;
}
