.rooms-home__page {
  box-sizing: border-box;
  margin-inline: 0;
  max-inline-size: none;
  padding: 0.5rem var(--inline-space) calc(var(--block-space) * 2);
  width: 100%;
}

.rooms-home__actions {
  display: flex;
  gap: calc(var(--inline-space) * 1.25);
  margin-block-end: calc(var(--block-space) * 1.25);
}

.rooms-home__action {
  align-items: center;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
}

.rooms-home__action-icon {
  align-items: center;
  aspect-ratio: 1;
  background: var(--secondary);
  border: 0;
  border-radius: 50%;
  color: var(--foreground);
  display: grid;
  inline-size: 2.75rem;
  place-items: center;
}

.rooms-home__action-label {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

.rooms-home__find {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-block-end: calc(var(--block-space) * 1.25);
}

.rooms-home__find-label {
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 500;
}

.rooms-home__find-input {
  --input-border-radius: 1.3rem;
  --input-padding: 0.65em 0.9em;
  background: var(--secondary);
  border: 0;
  color: var(--foreground);
}

.rooms-home__section {
  margin-block-end: calc(var(--block-space) * 1.25);
}

.rooms-home__heading-row {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  margin-block-end: 0.55rem;
}

.rooms-home__heading-row .rooms-home__heading,
.rooms-home__heading-row .rooms-home__new {
  margin-block-end: 0;
}

.rooms-home__heading {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 0.55rem;
}

.rooms-home__new {
  align-items: center;
  background: var(--secondary);
  border: 0;
  border-radius: 50%;
  display: grid;
  inline-size: 1.8rem;
  aspect-ratio: 1;
  color: var(--foreground);
  margin-block-end: 0.85rem;
  place-items: center;
}

.rooms-home__empty {
  margin: 0;
}

.rooms-home__lists.rooms {
  padding-inline: 0;
}

.rooms-home__rows {
  display: flex;
  flex-direction: column;
}

.room-row__item {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  min-inline-size: 0;
  padding-block: 0.45rem;

  &[hidden] {
    display: none;
  }
}

.room-row {
  align-items: baseline;
  color: var(--color-text);
  display: flex;
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  gap: 0.4rem;
  min-inline-size: 0;
  text-decoration: none;
}

.room-row.unread .room-row__name {
  font-weight: 600;
}

.room-row__name {
  flex-shrink: 1;
  font-weight: 400;
  max-inline-size: 55%;
}

.room-row__leader {
  border-block-end: 1px dotted var(--color-border-darker);
  flex: 1;
  min-inline-size: 2ch;
  transform: translateY(-0.35em);
}

.room-row__time {
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.room-row__star-form {
  flex-shrink: 0;
}

.room-row__star {
  --btn-border-color: transparent;
  --btn-padding: 0.15em;
  --hover-size: 0;
  background: transparent;
  border: 0;
  color: var(--foreground);
  display: grid;
  opacity: 0.45;
  place-items: center;
}

.room-row__star--on {
  color: hsl(42 92% 55%);
  opacity: 1;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.thread-card {
  background: var(--card);
  border: 0;
  border-radius: 1.1rem;
  color: var(--card-foreground);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
}

.thread-card__header {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-inline-size: 0;
}

.thread-card__avatar {
  --avatar-size: 1.75rem;
  flex-shrink: 0;
}

.thread-card__who {
  align-items: baseline;
  display: flex;
  gap: 0.35rem;
  min-inline-size: 0;
}

.thread-card__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-card__dot,
.thread-card__time {
  flex-shrink: 0;
}

.thread-card__dot {
  color: var(--muted-foreground);
}

.thread-card__time,
.thread-card__ago {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 400;
}

.thread-card__room {
  background: var(--secondary);
  border: 0;
  border-radius: 999px;
  color: var(--foreground);
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  margin-inline-start: auto;
  max-inline-size: 42%;
  overflow: hidden;
  padding: 0.22rem 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-card__excerpt {
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
}

.thread-card__replies {
  align-items: center;
  border: 0;
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.thread-card__faces {
  display: flex;
  flex-shrink: 0;
}

.thread-card__face {
  --avatar-size: 1.1rem;
  box-shadow: 0 0 0 2px var(--card);
}

.thread-card__face + .thread-card__face {
  margin-inline-start: -0.3rem;
}

.thread-card__count {
  font-size: 0.8rem;
  font-weight: 600;
}

.thread-card__ago {
  margin-inline-start: auto;
}

@media (max-width: 100ch) {
  .rooms-home__page {
    padding-inline: 12px;
  }
}

.inbox__empty {
  margin: 0;
}

.inbox__messages {
  justify-content: start;

  > .message {
    padding-inline: 12px;
    visibility: visible;
  }

  .message__room {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    visibility: visible;
    white-space: nowrap;
  }
}
