.te-stickers {
  display: grid;
  gap: 1rem;
  padding: 0.25rem 0 1rem;
  color: var(--ink, #33434e);
}
.te-stickers-intro,
.te-stickers-caption {
  margin: 0;
  color: var(--muted, #78868c);
  font-size: 0.83rem;
  line-height: 1.7;
}
.te-stickers-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}
.te-stickers-toolbar select {
  grid-column: 1/-1;
  justify-self: start;
  width: auto;
  max-width: 10rem;
}
.te-stickers-notice {
  min-height: 1.3em;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #78868c);
}
.te-sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.te-sticker-card {
  min-width: 0;
  padding: 0.55rem 0.4rem 0.4rem;
  border: 1px solid #ffffffb8;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #ffffffa8, #edf4f438);
  box-shadow: 0 6px 22px #66818409;
  backdrop-filter: blur(12px);
}
.te-sticker-image {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0.4rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.te-sticker-image img {
  width: 100%;
  height: 100%;
  max-height: 8rem;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px #33434e0a);
}
.te-sticker-image:disabled {
  opacity: 0.55;
  cursor: default;
}
.te-sticker-image span {
  font-size: 0.7rem;
  line-height: 1.5;
}
.te-sticker-name {
  margin: 0.35rem 0 0.2rem;
  text-align: center;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.te-sticker-tags {
  min-height: 1em;
  margin: 0;
  text-align: center;
  color: var(--muted, #78868c);
  font-size: 0.65rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.te-sticker-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.te-sticker-action {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.3rem;
  color: var(--muted, #78868c);
  font-size: 0.68rem;
  cursor: pointer;
  min-height: 2.2rem;
}
.te-sticker-editor {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background: #ffffff99;
  border: 1px solid #ffffffb8;
}
.te-sticker-editor h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.te-sticker-editor[hidden] {
  display: none;
}
.te-sticker-upload {
  justify-self: center;
}
.te-chat-media__item[data-sticker='true'] {
  max-width: 9rem;
}
.te-chat-media__item[data-sticker='true'] img {
  max-width: 9rem;
  max-height: 9rem;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.te-chat-message[data-sticker-only='true'] .te-chat-bubble {
  padding: 0.1rem;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  backdrop-filter: none;
}
@media (min-width: 680px) {
  .te-sticker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (prefers-reduced-transparency: reduce) {
  .te-sticker-card,
  .te-sticker-editor {
    background: #f7fafb;
    backdrop-filter: none;
  }
}
