/* Circlo Foundation Test Gate Fix 1.
   Fixes composer audience sizing/alignment and avatar fallback presentation. */

#i8ComposerAudience {
  min-width: 170px !important;
  width: auto !important;
  max-width: 240px !important;
}

.i8-composer-tools {
  display: grid !important;
  grid-template-columns: minmax(170px, 220px) auto minmax(12px, 1fr) auto;
  align-items: center !important;
  gap: 10px !important;
}

.i8-composer-tools .i8-photo-label {
  justify-content: center;
  white-space: nowrap;
}

.i8-composer-tools #i8Publish {
  min-width: 74px;
  justify-self: end;
}

.i8-composer-tools .i8-composer-spacer {
  display: block;
  min-width: 12px;
}

img.i9-avatar-fallback {
  object-fit: cover !important;
  background: #dbeafe !important;
}

.i9-feed-repair-note {
  margin-top: 8px;
  color: var(--muted, #64748b);
  font-size: .78rem;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .i8-composer-tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  #i8ComposerAudience {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .i8-composer-tools .i8-photo-label {
    width: 100%;
    box-sizing: border-box;
  }

  .i8-composer-tools .i8-composer-spacer {
    display: none;
  }

  .i8-composer-tools #i8Publish {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }
}
