.msg-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.msg-meta-left {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-meta-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.msg-meta-btn {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.msg-meta-btn:hover:not(:disabled),
.msg-meta-btn:focus-visible {
  border-color: var(--line);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.msg-meta-btn:disabled {
  cursor: default;
  opacity: 0.65;
}

.msg.user .msg-meta-bar {
  border-top-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
}

.msg.user .msg-meta-left {
  color: rgba(255, 255, 255, 0.76);
}

.msg.user .msg-meta-btn {
  color: rgba(255, 255, 255, 0.78);
}

.msg.user .msg-meta-btn:hover:not(:disabled),
.msg.user .msg-meta-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.msg.user .msg-meta-btn:disabled {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

@media (max-width: 640px) {
  .msg-meta-bar {
    gap: 8px;
    font-size: 11px;
  }

  .msg-meta-btn {
    min-height: 28px;
    padding: 4px 8px;
  }
}
