/* WaggleTails shelter pages (phase 2, slice D): Settings, Blocked Users, Change password, Delete Account, Contact
   Support, the notifications inbox, the in-app banner and the dashboard quick actions. Only what the shared sheets
   do not already have; colours come from wt-tokens.css. Families: .wt-settings-*, .wt-inbox-*, .wt-banner-*. */

/* Glyphs this slice draws that no other sheet declares (Font Awesome 6 Free code points, as the app's FASolid);
   globe, clock, chevron-down, camera and circle-exclamation come from wt-social.css, which _Layout links before this sheet. */
.fa-plus::before { content: "\f067"; }
.fa-pen::before { content: "\f304"; }
.fa-shield-halved::before { content: "\f3ed"; }
.fa-trash-can::before { content: "\f2ed"; }
.fa-circle-question::before { content: "\f059"; }
.fa-star::before { content: "\f005"; }
.fa-comment::before { content: "\f075"; }
.fa-chart-bar::before { content: "\f080"; }

/* Role banner - SettingsPage.xaml:349-397 (rounded-2xl px-4 py-3, 32 px white/20 disc, 14 bold white, 12 white/70). */
.wt-settings-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--wt-gradient-brand);
  color: #fff;
}
.wt-settings-banner__disc {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .2);
  font-size: 16px;
}
.wt-settings-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wt-settings-banner__title {
  font-weight: 700;
  font-size: 14px;
}
.wt-settings-banner__sub {
  font-size: 12px;
  opacity: .7;
  overflow-wrap: anywhere;
}

/* Section labels and titles - SettingsSectionLabelStyle / SettingsSectionTitleLabelStyle. */
.wt-settings-label {
  margin-top: 6px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-secondary);
}
.wt-settings-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wt-settings-section__title {
  font-weight: 600;
  font-size: 17px;
  color: var(--wt-text);
}
.wt-settings-section__sub {
  font-size: 13px;
  color: var(--wt-text-secondary);
}

/* Nav rows - SettingsPage.xaml:398-404 (px-4 py-4, 40 px disc, label 14, desc 12, chevron). */
.wt-settings-rows {
  display: flex;
  flex-direction: column;
}
.wt-settings-rows > * + * {
  border-top: 1px solid var(--wt-card-border);
}
.wt-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  color: var(--wt-text);
  text-decoration: none;
  cursor: pointer;
}
a.wt-settings-row:hover,
summary.wt-settings-row:hover {
  background: var(--wt-surface-subtle);
}
.wt-settings-row--static {
  cursor: default;
}
.wt-settings-row--stacked {
  flex-direction: column;
  align-items: stretch;
}
.wt-settings-row__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-settings-row__title {
  font-weight: 500;
  font-size: 14px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-settings-row__sub {
  font-size: 12px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-settings-row__chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--wt-text-muted);
}
.wt-card.wt-settings-row {
  padding: 14px 16px;
}

/* Toggle rows inside a card body - SettingsToggleRowGridStyle. */
.wt-settings-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Switch - the MAUI Switch with the brand OnColor; the input stays focusable, the track draws the state. */
.wt-settings-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  cursor: pointer;
}
.wt-settings-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.wt-settings-switch__track {
  position: absolute;
  inset: 0;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-outline);
  transition: background 120ms ease-out;
}
.wt-settings-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--wt-shadow-sm);
  transition: transform 120ms ease-out;
}
.wt-settings-switch input:checked + .wt-settings-switch__track {
  background: var(--wt-primary);
}
.wt-settings-switch input:checked + .wt-settings-switch__track::after {
  transform: translateX(20px);
}
.wt-settings-switch input:focus-visible + .wt-settings-switch__track {
  outline: 2px solid var(--wt-primary);
  outline-offset: 2px;
}

/* Accordions - the four collapsible category cards (HIBA-05); only the summary row is the tap target. */
.wt-settings-accordion > summary {
  list-style: none;
}
.wt-settings-accordion > summary::-webkit-details-marker {
  display: none;
}
.wt-settings-accordion > summary .wt-settings-row__chevron {
  transition: transform 120ms ease-out;
}
.wt-settings-accordion[open] > summary .wt-settings-row__chevron {
  transform: rotate(180deg);
}
.wt-settings-accordion__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 16px 18px;
}

/* Privacy form inside the card; the Blocked Users row follows it. */
.wt-settings-privacy {
  display: flex;
  flex-direction: column;
}
.wt-settings-privacy > .wt-settings-row + .wt-settings-row {
  border-top: 1px solid var(--wt-card-border);
}
.wt-settings-privacy__save {
  padding: 4px 16px 16px;
}

/* Visibility picker cards - SettingsVisibilityOptionBorderStyle: selected = selection fill, primary stroke, filled disc. */
.wt-settings-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.wt-settings-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--wt-border);
  border-radius: var(--wt-radius-input);
  background: var(--wt-card);
  cursor: pointer;
}
.wt-settings-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.wt-settings-option:focus-within {
  outline: 2px solid var(--wt-primary);
  outline-offset: 2px;
}
.wt-settings-option__disc {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wt-surface-muted);
  color: var(--wt-text-body-soft);
  font-size: 15px;
}
.wt-settings-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wt-settings-option__title {
  font-weight: 500;
  font-size: 14px;
  color: var(--wt-text);
}
.wt-settings-option__sub {
  font-size: 12px;
  color: var(--wt-text-secondary);
}
.wt-settings-option:has(input:checked) {
  background: var(--wt-selection-bg);
  border-color: var(--wt-primary);
}
.wt-settings-option:has(input:checked) .wt-settings-option__disc {
  background: var(--wt-primary);
  color: #fff;
}

/* Delete Account - the text-only red button under Log Out (SettingsPage.xaml:2110-2120), and the warning page's disc. */
.wt-settings-danger-link {
  display: block;
  padding: 12px 0;
  margin: 2px 0 8px;
  text-align: center;
  font-size: 14px;
  color: var(--wt-danger-accent);
  text-decoration: none;
}
.wt-settings-delete__disc {
  margin: 0 auto;
}

/* Blocked Users - BlockedUsersPage.xaml:91-118 (44 px avatar on the soft teal disc, bold name, outlined Unblock). */
.wt-settings-blocked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wt-settings-blocked__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wt-settings-blocked__row form {
  margin: 0;
  flex-shrink: 0;
}
.wt-settings-blocked__avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
  font-weight: 700;
  font-size: 16px;
}
.wt-settings-blocked__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-settings-blocked__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-settings-blocked__empty-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--wt-text);
}

/* Contact Support - GetSupportPage.xaml: the chips select on their radio, the dashed picker, the confirmation. */
.wt-settings-chip:has(input:checked) {
  background: var(--wt-primary);
  border-color: var(--wt-primary);
  color: #fff;
}
.wt-settings-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 16px;
  border: 2px dashed var(--wt-outline);
  border-radius: var(--wt-radius-input);
  background: var(--wt-surface-subtle);
  color: var(--wt-text-secondary);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.wt-settings-picker i {
  color: var(--wt-primary);
  font-size: 17px;
}
.wt-settings-picker.is-filled {
  border-color: var(--wt-primary);
  background: var(--wt-soft-teal-bg);
}
.wt-settings-support .wt-media-tile {
  width: 72px;
  height: 72px;
  border: 1px solid var(--wt-border);
  border-radius: 12px;
}
.wt-settings-support__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 16px;
}
.wt-settings-support__success-title {
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-settings-support__success .wt-btn {
  margin-top: 18px;
}

/* Dashboard quick actions - ShelterDashboardPage.xaml:158-162 (2 x 2 gradient tiles, 48 px white/20 disc, 14 white label).
   Applications and Manage Pets keep the app's fixed diagonal fills in both themes (a white label and the red badge sit on them). */
.wt-settings-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .wt-settings-quick {
    grid-template-columns: repeat(4, 1fr);
  }
}
.wt-settings-quick__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--wt-shadow-card);
}
.wt-settings-quick__tile--teal {
  background: var(--wt-gradient-brand);
}
.wt-settings-quick__tile--gold {
  background: linear-gradient(135deg, var(--wt-fixed-gold), var(--wt-fixed-gold-deep));
}
.wt-settings-quick__tile--sky {
  background: var(--wt-gradient-blue);
}
.wt-settings-quick__tile--green {
  background: linear-gradient(135deg, var(--wt-fixed-green), var(--wt-fixed-green-deep));
}
.wt-settings-quick__disc {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, .2);
  font-size: 20px;
}
.wt-settings-quick__label {
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}
.wt-settings-quick__badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* Inbox - InboxPage.xaml: "{n} new", the failure line, the rows, "Load more". */
.wt-inbox-new {
  font-size: 14px;
  color: var(--wt-primary);
}
.wt-inbox-error {
  font-size: 13px;
  color: var(--wt-error);
  overflow-wrap: anywhere;
}
.wt-inbox-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.wt-inbox-footer:empty {
  display: none;
}
.wt-inbox-footer .wt-btn {
  width: auto;
}
.wt-inbox-row {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  padding: 14px;
}
.wt-inbox-row.is-unread {
  border-color: var(--wt-primary);
}
.wt-inbox-row.is-urgent {
  border: 2px solid var(--wt-danger-accent);
}
.wt-inbox-row__dot {
  width: 10px;
  height: 10px;
  margin-top: 17px;
  border-radius: 5px;
  background: var(--wt-primary);
}
.wt-inbox-row:not(.is-unread) .wt-inbox-row__media {
  grid-column: 1 / 3;
}
.wt-inbox-row__media {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
}
.wt-inbox-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The gray and orange discs keep the app's fixed fills (MutedPillBackgroundColorDark / HomeUrgentEndColor): a white glyph sits on them in both themes. */
.wt-inbox-row__disc {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--wt-fixed-gray);
  color: #fff;
  font-size: 20px;
}
.wt-inbox-row__disc--teal {
  background: var(--wt-primary);
}
.wt-inbox-row__disc--gold {
  background: var(--wt-secondary);
}
.wt-inbox-row__disc--green {
  background: var(--wt-success);
}
.wt-inbox-row__disc--purple {
  background: var(--wt-soft-purple);
}
.wt-inbox-row__disc--orange {
  background: var(--wt-inbox-disc-orange);
}
.wt-inbox-row__disc--blue {
  background: var(--wt-soft-blue);
}
.wt-inbox-row__disc--red {
  background: var(--wt-danger-accent);
}
.wt-inbox-row__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wt-inbox-row__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
}
/* The whole card is the tap target (the app's card tap): the title link stretches over it; the trash sits above. */
.wt-inbox-row__open {
  display: block;
  min-height: 44px;
  padding: 11px 0 0;
  border: 0;
  background: transparent;
  color: var(--wt-text);
  font-family: var(--wt-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.wt-inbox-row__open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.wt-inbox-row__delete {
  position: relative;
  z-index: 1;
  margin: 0;
}
.wt-inbox-row__trash {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wt-text-secondary);
  font-size: 16px;
  cursor: pointer;
}
.wt-inbox-row__body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text-body-soft);
  overflow-wrap: anywhere;
}
.wt-inbox-row__time {
  font-size: 11px;
  color: var(--wt-text-secondary);
}
.wt-inbox-row__urgent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--wt-pill-red-bg);
  font-weight: 500;
  font-size: 12px;
  color: var(--wt-error);
}

/* In-app banner - InAppChatBannerHost: a card at the top that fades and slides in (220 ms) and out (180 ms). */
.wt-banner {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.wt-banner__card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 480px);
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--wt-card-border);
  border-radius: 20px;
  background: var(--wt-card);
  color: var(--wt-text);
  box-shadow: var(--wt-shadow-strong);
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity 180ms ease-in, transform 180ms ease-in;
  pointer-events: auto;
}
.wt-banner__card.is-shown {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.wt-banner__open {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--wt-font);
  text-align: left;
  cursor: pointer;
}
.wt-banner__media {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-primary);
  font-size: 18px;
}
.wt-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-banner__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-banner__title {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.wt-banner__body {
  font-size: 13px;
  line-height: 1.4;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-banner__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-body-soft);
  font-size: 14px;
  cursor: pointer;
}
