/* WaggleTails shelter pages (phase 1): Manage Pets cards and filters, the pet profile body, the pet editor steps,
   media grid and pager. Only what wt-components.css / site.css do not already have; colours come from wt-tokens.css. */

/* Manage Pets - ShelterPetsPage.xaml:31-35 header "Add Pet" pill, right-aligned under the page head */
.wt-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.wt-toolbar .wt-btn--compact {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

/* Manage Pets - ShelterPetsPage.xaml:38-43 stat strip (teal / green / gold / purple tiles, 24 px bold count, 12 px label) */
.wt-stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.wt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 10px 6px;
  border-radius: 16px;
  text-align: center;
}
.wt-stat__value {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}
.wt-stat__label {
  font-size: 12px;
  color: var(--wt-text-body-soft);
}
.wt-stat--teal {
  background: var(--wt-gradient-mint);
}
.wt-stat--teal .wt-stat__value {
  color: var(--wt-primary);
}
.wt-stat--green {
  background: var(--wt-soft-success-bg);
}
.wt-stat--green .wt-stat__value {
  color: var(--wt-pill-green-text);
}
.wt-stat--gold {
  background: var(--wt-soft-gold-bg);
}
.wt-stat--gold .wt-stat__value {
  color: var(--wt-pill-amber-text);
}
.wt-stat--purple {
  background: var(--wt-soft-purple-bg);
}
.wt-stat--purple .wt-stat__value {
  color: var(--wt-pill-purple-text);
}

/* Search box - ShelterPetsPage.xaml:50-56 (2 px stroke, radius 16, teal while focused) */
.wt-search {
  margin: 0;
}
.wt-search .wt-input {
  border-radius: 16px;
}

/* Filter chip rows - ShelterPetsPage.xaml:65-82: 12 px medium pills, muted fill, solid teal when selected, no stroke */
.wt-chip-row--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.wt-chip-row--scroll::-webkit-scrollbar {
  display: none;
}
.wt-chip--filter {
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  background: var(--wt-surface-muted);
  color: var(--wt-text-body-soft);
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.wt-chip--filter.is-selected {
  background: var(--wt-primary);
  color: var(--wt-on-primary);
}

/* Pet card - ShelterPetsPage.xaml:129-202 */
.wt-pet-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .wt-pet-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}
.wt-pet-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wt-pet-card__top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}
.wt-pet-card__image {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
  font-size: 28px;
}
.wt-pet-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-pet-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wt-pet-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wt-pet-card__name {
  min-width: 0;
  font-weight: 500;
  font-size: 17px;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-pet-card__breed {
  font-size: 13px;
  color: var(--wt-text-body-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-pet-card__meta {
  font-size: 11px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-pet-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--wt-text-muted);
}
.wt-pet-card__stats .is-live {
  font-weight: 600;
  color: var(--wt-primary);
}
.wt-badge--sm {
  padding: 4px 8px;
  font-size: 10px;
}
.wt-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wt-pet-card__fee {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--wt-soft-gold-bg);
  font-size: 13px;
  color: var(--wt-text-body);
}
.wt-pet-card__fee strong {
  font-weight: 700;
  color: var(--wt-secondary);
}
.wt-pet-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wt-pet-card__row--trailing {
  grid-template-columns: 1fr auto;
}
.wt-pet-card__row form {
  margin: 0;
  display: contents;
}
.wt-pet-card__slot {
  position: relative;
}
.wt-pet-card__slot .wt-count {
  position: absolute;
  top: -8px;
  right: 0;
}

/* Card action buttons - ShelterPetsPage.xaml:171-201 (44 px soft-teal pills, outlined edit, trash, gold / green / purple status rows) */
.wt-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-primary);
  font-family: var(--wt-font);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.wt-action--outline {
  border: 1px solid var(--wt-border);
  background: var(--wt-card);
  color: var(--wt-text-body);
}
.wt-action--trash {
  width: auto;
  min-width: 44px;
  padding: 8px 14px;
  color: var(--wt-danger-accent);
}
.wt-action--gold {
  min-height: 40px;
  background: var(--wt-soft-gold-bg);
  color: var(--wt-pill-amber-text);
}
.wt-action--green {
  min-height: 40px;
  background: var(--wt-soft-success-bg);
  color: var(--wt-pill-green-text);
}
.wt-action--purple {
  min-height: 40px;
  background: var(--wt-soft-purple-bg);
  color: var(--wt-pill-purple-text);
}

/* Footer line and empty state - ShelterPetsPage.xaml:113, 117-125 */
.wt-list-end {
  font-size: 12px;
  text-align: center;
  color: var(--wt-text-secondary);
}
.wt-empty__disc {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: var(--wt-surface-muted);
  color: var(--wt-soft-teal);
  font-size: 32px;
  opacity: .55;
}
.wt-empty .wt-btn {
  width: auto;
  margin: 12px auto 0;
  min-height: 48px;
  padding: 12px 24px;
}

/* Pager */
.wt-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wt-pager__page {
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-pager .wt-btn--compact {
  min-width: 96px;
}

/* Confirm and preview modals - ShelterPetsPage.xaml:209-221 (scrim, 350 px card, radius 24, red disc). Opened by :target, so the
   pages need no script: the trigger links to the modal's id and Cancel links away from it. */
.wt-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--wt-scrim);
}
.wt-modal:target {
  display: flex;
}
.wt-modal__card {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--wt-radius-card);
  background: var(--wt-card);
  box-shadow: var(--wt-shadow-strong);
}
.wt-modal__card--media {
  max-width: 720px;
  padding: 12px;
  gap: 8px;
}
.wt-modal__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--wt-pill-red-bg);
  color: var(--wt-danger-accent);
  font-size: 22px;
}
.wt-modal__title {
  font-weight: 500;
  font-size: 19px;
  text-align: center;
  color: var(--wt-text);
}
.wt-modal__text {
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--wt-text-body-soft);
}
.wt-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
.wt-modal__actions form {
  margin: 0;
  display: contents;
}
.wt-modal__actions .wt-btn {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 24px;
}
.wt-modal__media {
  /* QC 2026-10-14 (Hiba, "images ... demo on preview page and live page"): the image keeps its own shape - a portrait photo
     stands tall and centred instead of a 720 px box with white gutters either side. */
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 16px;
  background: var(--wt-page-surface);
}
video.wt-modal__media {
  width: 100%;
}
.wt-modal__close {
  align-self: flex-end;
}

/* Pet profile body - ShelterPetProfilePreviewView.xaml (hero 300 px, section cards 18 px padding, 18 px semibold titles) */
.wt-profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wt-profile__hero {
  position: relative;
  /* QC 2026-10-14 (Hiba): a fixed 300 px band at 720 px wide showed a thin middle slice of a portrait phone photo; the hero
     keeps the phone's 4:3 shape and grows with the column, up to 420 px, so the subject stays in frame. */
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  max-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--wt-radius-card) var(--wt-radius-card) 0 0;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
  font-size: 56px;
}
.wt-profile__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.wt-profile__hero-link {
  display: block;
  width: 100%;
  height: 100%;
}
.wt-profile__ribbon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 16px;
  background: var(--wt-secondary);
  color: #fff;
  font-weight: 500;
  font-size: 11px;
}
.wt-profile__intro {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 18px 18px;
}
.wt-profile__name {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-profile__line {
  font-size: 13px;
  color: var(--wt-text-body-soft);
  overflow-wrap: anywhere;
}
.wt-profile__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.wt-profile__section--loose {
  gap: 14px;
}
.wt-section-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-fee-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--wt-gold-hairline);
  border-radius: 16px;
  background: var(--wt-gradient-mint);
}
.wt-fee-card__code {
  font-weight: 700;
  font-size: 15px;
  color: var(--wt-primary);
}
.wt-fee-card__label {
  font-weight: 600;
  font-size: 13px;
  color: var(--wt-text);
}
.wt-fee-card__amount {
  font-weight: 700;
  font-size: 18px;
  color: var(--wt-primary);
  overflow-wrap: anywhere;
}
.wt-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
}
.wt-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-fact__label {
  font-size: 11px;
  color: var(--wt-text-secondary);
}
.wt-fact__value {
  font-weight: 600;
  font-size: 13px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-fact__value--plain {
  font-weight: 400;
  color: var(--wt-text-body);
}
.wt-chip--solid {
  padding: 7px 12px;
  border: 0;
  background: var(--wt-primary);
  color: #fff;
  font-weight: 500;
  font-size: 12px;
}
.wt-chip--solid-gold {
  padding: 7px 12px;
  border: 0;
  background: var(--wt-secondary);
  color: #fff;
  font-weight: 500;
  font-size: 12px;
}
.wt-chip--soft-teal {
  padding: 6px 11px;
  border: 0;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
  font-size: 12px;
}
.wt-chip--soft-gold {
  padding: 6px 11px;
  border: 0;
  background: var(--wt-soft-gold-bg);
  color: var(--wt-pill-amber-text);
  font-size: 12px;
}
.wt-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wt-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  font-size: 13px;
  color: var(--wt-text-body);
  overflow-wrap: anywhere;
}
.wt-checklist li::before {
  content: "✓";
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
  color: var(--wt-primary);
}
.wt-health {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  text-align: center;
}
.wt-health__disc {
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-muted);
  font-size: 22px;
}
.wt-health__disc--green {
  background: var(--wt-pill-green-bg);
  color: var(--wt-success);
}
.wt-health__disc--yellow {
  background: var(--wt-pill-amber-bg);
}
.wt-health__caption {
  font-size: 10px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-health__value {
  font-weight: 600;
  font-size: 12px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}

/* Gallery - ShelterPetProfilePreviewView.xaml:57-108 and ShelterPetGalleryGrid (photos 3 x 76, videos 2 x 96, 8 px gaps) */
.wt-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wt-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wt-gallery__grid--videos {
  grid-template-columns: repeat(2, 1fr);
}
.wt-gallery__tile {
  position: relative;
  display: block;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--wt-surface-muted);
}
.wt-gallery__tile--video {
  height: 96px;
  background: var(--wt-text-body-strong);
}
.wt-gallery__tile img,
.wt-gallery__tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-gallery__star {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--wt-secondary);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}
.wt-gallery__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--wt-scrim);
}
.wt-gallery__play span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--wt-glass);
  color: var(--wt-text-body-strong);
  font-size: 16px;
}

/* Pet editor - ShelterPetEditorPage.xaml */
.wt-editor-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wt-editor-head__step {
  font-size: 13px;
  color: var(--wt-text-body-soft);
}
.wt-editor-head.is-hidden {
  display: none;
}
.wt-progress__fill[data-progress="1"] { width: 20%; }
.wt-progress__fill[data-progress="2"] { width: 40%; }
.wt-progress__fill[data-progress="3"] { width: 60%; }
.wt-progress__fill[data-progress="4"] { width: 80%; }
.wt-progress__fill[data-progress="5"] { width: 100%; }
fieldset.wt-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
fieldset.wt-field legend {
  padding: 0;
  margin-bottom: 8px;
}
.wt-step {
  display: none;
  flex-direction: column;
  gap: 22px;
}
.wt-step.is-active {
  display: flex;
}
.wt-step-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wt-step-head h2 {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-step-head p {
  font-size: 13px;
  color: var(--wt-text-body-soft);
}
.wt-tip {
  padding: 16px;
  border: 2px solid var(--wt-selection-bg);
  border-radius: 16px;
  background: var(--wt-gradient-mint);
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text-body);
  overflow-wrap: anywhere;
}
.wt-tip strong {
  font-weight: 600;
}
.wt-tip--blue {
  padding: 14px;
  border-color: var(--wt-pill-blue-border);
  background: var(--wt-soft-blue-bg);
  font-size: 12px;
  color: var(--wt-pill-blue-text);
}
.wt-tip--gold {
  padding: 12px;
  border: 1px solid var(--wt-secondary);
  background: var(--wt-soft-gold-bg);
  font-size: 11px;
  color: var(--wt-text-body-soft);
  white-space: pre-line;
}
.wt-tip--teal {
  padding: 14px;
  background: var(--wt-soft-teal-bg);
  font-size: 12px;
}
.wt-note {
  padding: 12px;
  border: 1px solid var(--wt-gold-hairline);
  border-radius: 16px;
  background: var(--wt-soft-gold-bg);
  font-size: 11px;
  color: var(--wt-pill-amber-text);
}
.wt-field__label {
  font-weight: 500;
  font-size: 14px;
  color: var(--wt-text-body);
  overflow-wrap: anywhere;
}
.wt-field__label--sm {
  font-size: 11px;
}
.wt-field__helper--sm {
  font-size: 11px;
}
textarea.wt-input--short {
  min-height: 90px;
}
select.wt-input {
  appearance: auto;
}

/* Option cards - PetChoiceCardBorderStyle (2 columns, min 52 px, muted fill, solid teal + white when picked) */
.wt-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wt-choice--card {
  position: relative;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 8px;
  border: 0;
  border-radius: 16px;
  background: var(--wt-surface-muted);
  text-align: center;
  cursor: pointer;
}
.wt-choice--card input,
.wt-chip--pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.wt-choice--card:focus-within,
.wt-chip--pick:focus-within {
  outline: 2px solid var(--wt-primary);
  outline-offset: 2px;
}
.wt-choice__title {
  font-weight: 500;
  font-size: 14px;
  color: var(--wt-text-body);
  overflow-wrap: anywhere;
}
.wt-choice__caption {
  font-size: 11px;
  color: var(--wt-text-secondary);
}
.wt-choice--card.is-selected {
  background: var(--wt-primary);
}
.wt-choice--card.is-selected .wt-choice__title {
  color: #fff;
}
.wt-choice--card.is-selected .wt-choice__caption {
  color: #fff;
  opacity: .75;
}

/* Multi-select chips - SelectionCardButtonStyle with the ChoiceTemplate / GoldChoiceTemplate triggers */
.wt-chip--pick {
  position: relative;
  min-height: var(--wt-chip-height);
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wt-chip--pick.is-selected {
  background: var(--wt-primary);
  border-color: var(--wt-primary);
  color: #fff;
}
.wt-chip--pick.wt-chip--gold.is-selected {
  background: var(--wt-secondary);
  border-color: var(--wt-secondary);
  color: #fff;
}

/* Affixed inputs - the "kg" suffix (XAML:326) and the "JOD" prefix (XAML:421) */
.wt-input-affix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
  border: 2px solid var(--wt-border);
  border-radius: var(--wt-radius-input);
  background: var(--wt-input-bg);
}
.wt-input-affix--prefix {
  grid-template-columns: auto 1fr;
  padding-right: 0;
  padding-left: 16px;
}
.wt-input-affix:focus-within {
  border-color: var(--wt-primary);
}
.wt-input-affix .wt-input {
  border: 0;
  background: transparent;
}
.wt-input-affix .wt-input:focus {
  outline: none;
}
.wt-input-affix__unit {
  padding-left: 12px;
  border-left: 1px solid var(--wt-border);
  font-weight: 500;
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-input-affix__code {
  font-weight: 600;
  font-size: 14px;
  color: var(--wt-text-secondary);
}
.wt-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px 8px;
  align-items: end;
}

/* Breed typeahead - XAML:223-237 (suggestion list above the entry, 8 rows of name + species) */
.wt-suggestions {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: var(--wt-card);
}
.wt-suggestions.is-open {
  display: flex;
}
.wt-suggestion {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--wt-font);
  text-align: left;
  cursor: pointer;
}
.wt-suggestion:hover,
.wt-suggestion:focus {
  background: var(--wt-surface-muted);
  outline: none;
}
.wt-suggestion__name {
  font-weight: 500;
  font-size: 14px;
  color: var(--wt-text);
}
.wt-suggestion__type {
  font-size: 12px;
  color: var(--wt-text-body-soft);
}

/* Media picker - XAML:370-403 (104 px tiles, star top-left, red x top-right, dark video plate) */
.wt-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wt-media-tile {
  position: relative;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--wt-surface-muted);
}
.wt-media-tile--video {
  display: grid;
  place-items: center;
  background: var(--wt-text-body);
  color: #fff;
  font-size: 28px;
}
.wt-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-media-tile__star,
.wt-media-tile__remove,
.wt-media-tile__adjust {
  position: absolute;
  top: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  font-family: var(--wt-font);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.wt-media-tile__star {
  left: 6px;
  background: var(--wt-glass);
  color: var(--wt-text-body-soft);
}
.wt-media-tile__star.is-primary {
  background: var(--wt-secondary);
  color: #fff;
}
.wt-media-tile__remove {
  right: 6px;
  background: var(--wt-danger-accent);
  color: #fff;
  font-size: 18px;
}
/* The tile's third disc (Islam 2026-10-16, E98): Adjust opens the shared crop step at 4:3, bottom-right under the red x. */
.wt-media-tile__adjust {
  top: auto;
  right: 6px;
  bottom: 6px;
  background: var(--wt-glass);
  color: var(--wt-text-body-soft);
  font-size: 13px;
}
.wt-media-input {
  display: none;
}
.wt-media-add.is-hidden {
  display: none;
}

/* Wizard footer - XAML:470-476 (Back at its own width, the primary taking the rest, 12 px apart) */
.wt-wizard-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding-top: 4px;
}
.wt-wizard-footer .wt-btn {
  min-height: 52px;
  padding: 14px 16px;
}
.wt-wizard-footer .wt-btn.is-hidden {
  display: none;
}
.wt-wizard-footer:has(#wt-step-back.is-hidden) {
  grid-template-columns: 1fr;
}
.wt-preview-title {
  font-weight: 600;
  font-size: 21px;
  color: var(--wt-primary);
}

/* Web portal phase 6 (conventions 23.3): the waiting room card at the top of the dashboard - the gold tint while the
   profile waits, the rose tint with the danger hairline once it was declined; the title beside the icon disc, the text,
   one primary button at its own width. Tokens only (their dark values sit in wt-tokens.css); the text wraps at any width. */
.wt-shelter-waiting {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--wt-secondary);
  border-radius: var(--wt-radius-card);
  background: var(--wt-soft-gold-bg);
  color: var(--wt-text-body);
  overflow-wrap: anywhere;
}
.wt-shelter-waiting--declined {
  border-color: var(--wt-danger-accent);
  background: var(--wt-rose-bg);
}
.wt-shelter-waiting__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.wt-shelter-waiting__title {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--wt-text);
}
.wt-shelter-waiting__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.wt-shelter-waiting__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wt-shelter-waiting__actions .wt-btn {
  width: auto;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}
