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

.community-core-inline-composer {
  margin-bottom: 24px;
  border: 1px solid #d7e0ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.community-core-inline-composer__form {
  margin: 0;
}

.community-core-inline-composer__form.dragging .community-core-inline-composer__dropzone,
.community-core-inline-composer__dropzone.is-dragover {
  border-color: #0b69c7;
  background: #eef6ff;
}

.community-core-inline-composer__layout {
  display: flex;
  gap: 16px;
  padding: 18px;
}

.community-core-inline-composer__avatar-wrap {
  flex: 0 0 auto;
}

.community-core-inline-composer__avatar {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  object-fit: cover;
}

.community-core-inline-composer__body {
  flex: 1 1 auto;
  min-width: 0;
}

.community-core-inline-composer__textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border: 1px solid #ccd8e4;
  border-radius: 14px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.65;
  background: #f8fbff;
}

.community-core-inline-composer__textarea:focus {
  outline: 2px solid #0b69c7;
  outline-offset: 2px;
  border-color: #0b69c7;
  background: #fff;
}

.community-core-inline-composer__media {
  margin-top: 14px;
}

.community-core-inline-composer__dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px dashed #b8c9db;
  border-radius: 14px;
  background: #f8fbff;
}

.community-core-inline-composer__dropzone-copy {
  min-width: 0;
}

.community-core-inline-composer__dropzone-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.community-core-inline-composer__dropzone-copy p {
  margin: 0;
  color: #526070;
  font-size: 0.9rem;
  line-height: 1.5;
}

.community-core-inline-composer__dropzone.is-full {
  opacity: 0.72;
}

.community-core-inline-composer__media-button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #e8f1fb;
  color: #0b3d6e;
}

.community-core-inline-composer__media-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.community-core-inline-composer__thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.community-core-inline-composer__thumbnails:not(.has-items) {
  display: none;
}

.community-core-inline-composer__thumbnail {
  position: relative;
  min-width: 0;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  cursor: grab;
}

.community-core-inline-composer__thumbnail.is-dragging {
  opacity: 0.55;
}

.community-core-inline-composer__thumbnail.is-drop-target {
  outline: 2px solid #0b69c7;
  outline-offset: 2px;
}

.community-core-inline-composer__thumbnail-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.community-core-inline-composer__thumbnail-order {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.community-core-inline-composer__thumbnail-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.community-core-inline-composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.community-core-inline-composer__hint {
  margin: 0;
  color: #526070;
  font-size: 0.92rem;
}

.community-core-inline-composer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-core-inline-composer__count {
  min-width: 2.5em;
  text-align: right;
  font-weight: 700;
  color: #234;
}

.community-core-inline-composer__count.is-over-limit {
  color: #c62828;
}

.community-core-inline-composer__submit {
  border: 0;
  border-radius: 9999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  background: #0b69c7;
  color: #fff;
}

.community-core-inline-composer__submit:focus,
.community-core-inline-composer__media-button:focus,
.community-core-inline-composer__dropzone:focus,
.community-core-inline-composer__thumbnail-remove:focus,
.community-core-delete-dialog__button:focus,
.community-core-piece-delete-trigger:focus {
  outline: 2px solid #0b69c7;
  outline-offset: 2px;
}

.community-core-inline-composer__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.community-core-inline-composer__status {
  min-height: 1.5em;
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.community-core-inline-composer__status.is-error {
  color: #c62828;
}

.community-core-inline-composer__status.is-success {
  color: #1b7f3b;
}

.community-core-piece-card {
  position: relative;
}

.community-core-piece-delete-trigger {
  margin-left: 8px;
}

.community-core-delete-dialog {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.community-core-delete-dialog[hidden] {
  display: none;
}

.community-core-delete-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.community-core-delete-dialog__surface {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  margin: 14vh auto 0;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.community-core-delete-dialog__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.community-core-delete-dialog__description {
  margin: 0;
  color: #526070;
  line-height: 1.6;
}

.community-core-delete-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.community-core-delete-dialog__button {
  border: 0;
  border-radius: 9999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.community-core-delete-dialog__button--secondary {
  background: #edf2f7;
  color: #223;
}

.community-core-delete-dialog__button--danger {
  background: #c62828;
  color: #fff;
}

.community-core-delete-dialog__button:disabled {
  cursor: wait;
  opacity: 0.7;
}

body.community-core-dialog-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .community-core-inline-composer__thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .community-core-inline-composer__layout,
  .community-core-inline-composer__footer,
  .community-core-inline-composer__dropzone {
    flex-direction: column;
    align-items: stretch;
  }

  .community-core-inline-composer__actions {
    justify-content: space-between;
  }

  .community-core-inline-composer__thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-core-delete-dialog__surface {
    margin-top: 20vh;
    width: min(94vw, 420px);
    padding: 20px;
  }
}
