/* One attachment-pill material for main chat and mounted Ghost. */
.tm-attachment-menu .tm-attachment-pill {
  --tm-attachment-ink: var(--color-ink, var(--foreground));
  --tm-attachment-edge: rgb(var(--tm-edge-rgb, 255 255 255));
  position: relative;
  isolation: isolate;
  color: color-mix(in srgb, var(--tm-attachment-ink) 92%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tm-attachment-ink) 8%, transparent), color-mix(in srgb, var(--tm-attachment-ink) 3.5%, transparent));
  border: 1px solid color-mix(in srgb, var(--tm-attachment-ink) 12%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tm-attachment-edge) 26%, transparent), inset 1px 0 0 color-mix(in srgb, var(--tm-attachment-edge) 8%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--tm-attachment-edge) 3%, transparent), 0 10px 30px -12px rgb(var(--tm-shadow-rgb, 0 0 0) / .7);
}
.tm-attachment-menu .tm-attachment-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, color-mix(in srgb, var(--tm-attachment-edge) 7%, transparent), color-mix(in srgb, var(--tm-attachment-edge) 1.5%, transparent) 30%, transparent 55%, color-mix(in srgb, var(--tm-attachment-edge) 2.5%, transparent));
  z-index: -1;
}
.tm-attachment-menu .tm-attachment-pill:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tm-attachment-ink) 11%, transparent), color-mix(in srgb, var(--tm-attachment-ink) 5%, transparent));
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .tm-attachment-menu .tm-attachment-pill {
    background: var(--color-surface, var(--background));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
