.community-core-composer-v2 {
  position: relative;
  display: grid;
  min-width: 0;
  width: 100%;
}

.community-core-composer-v2__mirror,
.community-core-composer-v2 > .community-core-inline-composer__textarea,
.community-core-composer-v2 > textarea[data-community-composer-v2] {
  grid-area: 1 / 1;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  font: inherit;
  font-size: 1.08rem;
  font-kerning: auto;
  letter-spacing: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
  tab-size: 4;
  white-space: pre-wrap;
  word-break: break-word;
}

.community-core-composer-v2__mirror {
  z-index: 0;
  min-height: 64px;
  max-height: 42vh;
  padding: 10px 0 12px;
  overflow: hidden;
  border: 0;
  color: #0f172a;
  background: transparent;
  pointer-events: none;
  visibility: hidden;
}

.community-core-composer-v2.is-over-limit .community-core-composer-v2__mirror {
  visibility: visible;
}

.community-core-composer-v2.is-over-limit > .community-core-inline-composer__textarea,
.community-core-composer-v2.is-over-limit > textarea[data-community-composer-v2] {
  z-index: 1;
  color: transparent !important;
  caret-color: #0f172a;
  -webkit-text-fill-color: transparent;
}

.community-core-composer-v2.is-over-limit > textarea::placeholder {
  -webkit-text-fill-color: #8a99aa;
}

.community-core-composer-v2__mirror mark {
  border-radius: 3px;
  color: #b42318;
  background: #fee4e2;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.community-core-composer-v2__suggestions {
  position: fixed;
  /* The listbox is portalled to body, so it must clear the legacy composer
     dialog stack (999999) while remaining below the global modal stack. */
  z-index: 1000000;
  box-sizing: border-box;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  max-height: min(320px, 48vh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d8e1eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  scrollbar-gutter: stable;
  touch-action: pan-y;
}

.community-core-composer-v2__suggestions.is-open {
  animation: community-core-suggestions-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center top;
}

.community-core-composer-v2__suggestions.is-open[data-placement="above"] {
  transform-origin: center bottom;
}

.community-core-composer-v2__suggestions[hidden] {
  display: none;
}

.community-core-composer-v2__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.community-core-composer-v2__option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
}

.community-core-composer-v2__option:hover,
.community-core-composer-v2__option.is-active,
.community-core-composer-v2__option[aria-selected="true"] {
  background: #edf6ff;
}

.community-core-composer-v2__option-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
}

.community-core-composer-v2__option-text {
  display: grid;
  min-width: 0;
}

.community-core-composer-v2__option-text strong,
.community-core-composer-v2__option-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-core-composer-v2__option-text strong {
  font-size: 0.95rem;
}

.community-core-composer-v2__option-text span {
  color: #64748b;
  font-size: 0.82rem;
}

@keyframes community-core-suggestions-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-core-composer-v2__suggestions.is-open {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  .community-core-composer-v2__suggestions {
    border-color: currentColor;
  }

  .community-core-composer-v2__mirror mark {
    outline: 2px solid currentColor;
  }
}
