/* Shared visual refinements for category icons and the Chats list. */
.lyv-category-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  vertical-align: middle;
}

#hangoutType .choice[data-value="Bowling"] .lyv-category-icon {
  width: 32px;
  height: 32px;
}

#lyvPublishedHangoutIcon .lyv-category-icon {
  width: 70px;
  height: 70px;
}

.lyv-category-icon--forest {
  color: #203D33;
}

.lyv-category-icon--sage {
  color: #3F684F;
}

.lyv-category-icon--terracotta {
  color: #A94F35;
}

.lyv-category-icon--gold {
  color: #815D14;
}

.lyv-category-icon--neutral {
  color: #68756E;
}

.lyv-category-icon--cinema {
  color: #B45339;
}

.lyv-category-icon--concerts {
  color: #A87516;
}

.badge.dark .lyv-category-icon {
  color: #E2ECE5;
}

#exploreFilters .pill.active .lyv-category-icon {
  color: #FFFFFF;
}

.cat .bubble .lyv-category-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.cat .bubble:has(.lyv-category-icon--sage) {
  border-color: #D5E2D8;
  background: #E8F0EA;
}

.cat .bubble:has(.lyv-category-icon--terracotta) {
  border-color: #EBD8CE;
  background: #FBF0EA;
}

.cat .bubble:has(.lyv-category-icon--gold) {
  border-color: #E9DFC5;
  background: #F8F2E3;
}

.cat .bubble:has(.lyv-category-icon--neutral) {
  border-color: #E0E3DF;
  background: #F1F2EF;
}

.cat .bubble:has(.lyv-category-icon--cinema) {
  border-color: #F0D4C7;
  background: #F8E9E2;
}

.cat .bubble:has(.lyv-category-icon--concerts) {
  border-color: #EFDDBB;
  background: #FFF0D8;
}

#exploreFilters .pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#chats > .content {
  max-width: 840px;
}

#chats .lyv-chat-archive-view-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid #DCE7DF;
  background: #F1F5F3;
  color: #203D33;
}

#chats .lyv-chat-archive-view-toggle:hover,
#chats .lyv-chat-archive-view-toggle:focus-visible {
  border-color: #AFC4B5;
  background: #E7EFE9;
}

#chats .lyv-chat-archive-view-toggle .lyv-chat-archive-icon {
  width: 23px;
  height: 23px;
}

#chats .lyv-chat-archive-back {
  min-height: 42px;
  margin: -4px 0 14px;
}

#chats .lyv-chat-archive-view-toggle[hidden],
#chats .lyv-chat-archive-back[hidden] {
  display: none !important;
}

#chats #lyvChatsList {
  gap: 8px;
}

#chats .lyv-chat-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 2px;
  color: #203D33;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
}

#chats .lyv-chat-archive-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #557363;
  vertical-align: middle;
}

#chats .lyv-chat-row {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #E6E7E1;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 3px 12px rgba(32, 61, 51, .035);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#chats .lyv-chat-row--archived {
  border-color: #E2E4DC;
  background: #F7F7F3;
  box-shadow: none;
}

#chats .lyv-chat-row__archived-label {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 7px;
  border: 1px solid #DDE3DB;
  border-radius: 999px;
  background: #EDF1EA;
  color: #53675A;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

#chats .lyv-chat-row__archive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}

#chats .lyv-chat-row__archive .lyv-chat-archive-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

#chats .lyv-chat-row__layout {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#chats .lyv-chat-row__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #DCE7DF;
  border-radius: 50%;
  background: #EAF1EC;
  color: #203D33;
}

#chats .lyv-chat-row__icon:has(.lyv-category-icon--sage) {
  border-color: #D5E2D8;
  background: #E8F0EA;
}

#chats .lyv-chat-row__icon:has(.lyv-category-icon--terracotta) {
  border-color: #EBD8CE;
  background: #FBF0EA;
}

#chats .lyv-chat-row__icon:has(.lyv-category-icon--gold) {
  border-color: #E9DFC5;
  background: #F8F2E3;
}

#chats .lyv-chat-row__icon:has(.lyv-category-icon--neutral) {
  border-color: #E0E3DF;
  background: #F1F2EF;
}

#chats .lyv-chat-row__icon:has(.lyv-category-icon--cinema) {
  border-color: #F0D4C7;
  background: #F8E9E2;
}

#chats .lyv-chat-row__icon:has(.lyv-category-icon--concerts) {
  border-color: #EFDDBB;
  background: #FFF0D8;
}

#chats .lyv-chat-row__icon .lyv-category-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

#chats .lyv-chat-row__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#chats .lyv-chat-row__title {
  overflow: hidden;
  color: #203D33;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#chats .lyv-chat-row__preview {
  display: -webkit-box;
  overflow: hidden;
  color: #68756E;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

#chats .lyv-chat-row__unread {
  display: grid;
  min-width: 22px;
  height: 22px;
  align-self: center;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #C83C35;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.screen.has-nav > .nav button[data-go="chats"] {
  position: relative;
}

.lyvChatBadge {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #FFFEFA;
  border-radius: 999px;
  background: #C83C35;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  #chats .lyv-chat-row:hover {
    border-color: #D4DED6;
    box-shadow: 0 6px 16px rgba(32, 61, 51, .065);
    transform: translateY(-1px);
  }
}

@media (min-width: 900px) {
  #chats .lyv-chat-row {
    padding: 14px 17px;
  }

  #chats .lyv-chat-row__layout {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
  }

  #chats .lyv-chat-row__icon {
    width: 48px;
    height: 48px;
  }

  .screen.has-nav > .nav button[data-go="chats"] .lyvChatBadge {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }
}

@media (max-width: 899px) {
  .screen.has-nav > .nav button[data-go="chats"] .lyvChatBadge {
    top: 7px;
    right: calc(50% - 25px);
  }
}

@media (max-width: 380px) {
  #chats .content {
    padding-right: 14px;
    padding-left: 14px;
  }

  #chats .lyv-chat-row {
    padding: 11px 12px;
  }

  #chats .lyv-chat-row__layout {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 9px;
  }

  #chats .lyv-chat-row__icon {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #chats .lyv-chat-row {
    transition: none;
  }
}

/* Profile navigation uses the signed-in member's existing LYV avatar. */
.screen.has-nav > .nav .lyvProfileNavAvatar {
  position: relative;
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: visible;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--lyv-sage, #E2ECE5);
  color: var(--lyv-forest, #203D33);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.screen.has-nav > .nav .lyvProfileNavAvatarInitial,
.screen.has-nav > .nav .lyvProfileNavAvatarImage {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.screen.has-nav > .nav .lyvProfileNavAvatarInitial {
  display: grid;
  place-items: center;
}

.screen.has-nav > .nav .lyvProfileNavAvatarImage {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.screen.has-nav > .nav .lyvProfileNavAvatarImage[hidden],
.screen.has-nav > .nav .lyvProfileNavAvatarInitial[hidden] {
  display: none;
}

.screen.has-nav > .nav button.active .lyvProfileNavAvatar {
  border-color: #203D33;
  box-shadow: 0 0 0 2px #E2ECE5;
}

@media (min-width: 900px) {
  .screen.has-nav > .nav .lyvProfileNavAvatar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

/* Category accents follow the same tones in badges, filters, and interest chips. */
.badge:not(.dark):has(.lyv-category-icon--cinema),
#myProfile .lyv-profile-interest-chips .pill:has(.lyv-category-icon--cinema),
#exploreFilters .pill:not(.active):has(.lyv-category-icon--cinema) {
  border-color: #F0D4C7;
  background: #F8E9E2;
}

.badge:not(.dark):has(.lyv-category-icon--concerts),
#myProfile .lyv-profile-interest-chips .pill:has(.lyv-category-icon--concerts),
#exploreFilters .pill:not(.active):has(.lyv-category-icon--concerts) {
  border-color: #EFDDBB;
  background: #FFF0D8;
}

/* Minimal outline artwork for the existing primary navigation. */
.screen.has-nav > .nav button .lyv-nav-svg {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #68756E;
}

.screen.has-nav > .nav button.active .lyv-nav-svg {
  color: #203D33;
}

#lyvArchivedChatsOpen { position: relative; }
#lyvArchivedChatsOpen .lyvChatBadge { top: -5px; right: -5px; }
